[root@docker-registry ~]# docker pull centos Using default tag: latestTrying to pull repository docker.io/library/centos ... Get https://registry-1.docker.io/v2/library/centos/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fcentos%3Apull&service=registry.docker.io: ...【阅读全文】
1. 计算字母和数字出现的次数 str='abc123abc456aa'd={}for x in str: print x if not x in d: d[x]=1 else: d[x]=d[x]+1 print d {'a': 4, 'c': 2, 'b': 2, '1': 1, '3': 1, '2': 1, '5': 1, ...【阅读全文】