摘要: 绝对路径 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 阅读全文
posted @ 2019-07-24 23:43 套你大象 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 浅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', 阅读全文
posted @ 2019-07-24 21:58 套你大象 阅读(167) 评论(0) 推荐(0) 编辑