点击运行
#!/usr/bin/python3 dict1 = {'Name': 'Zara', 'Age': 7}; dict2 = dict1.copy() print ("New Dictinary : %s" % str(dict2))
运行结果 :
正在执行...