摘要:
绝对路径 f = open('d:\345.txt',mode='r',encoding='utf-8') i = f.read() print(f) f.close() 相对路径 f = open('345',mode='r',encoding='utf-8') i = f.read() prin 阅读全文
摘要:
浅copy import copy n1 = {'k1':'wu','k2':123,'k3':['alex',678]} n3 = copy.copy(n1) print(n1,n3) 深copy import copy n1 = {'k1':'wu','k2':123,'k3':['alex', 阅读全文