dict = {"a": 1, "b": 2, "c":3} dict = {} #可宣告空 Dictionary
for key in dict: print '{0} = {1}'.format(key, dict[key]) #output: # a = 1 # c = 3 # b = 2
沒有留言:
張貼留言