网站首页 站内搜索

搜索结果

查询Tags标签: xiongsheng,共有 1条记录
  • 简述python深浅拷贝

    # 赋值 a = 1 b = a print(a, b) print(id(a), id(b)) # id是相同的c = [1, 2, 3] d = cc[0] = "xiongsheng" print(c, d)# 浅拷贝 import copyli1 = [1, 2, 3] li2 = copy.copy(li1) li1[0] = "xiongsheng"print(li1, li2)li3 = [[11, 22, 33], [44…

    2022/2/11 1:42:30 人评论 次浏览
扫一扫关注最新编程教程