02 2022 档案
摘要:1、函数传参 传参是赋值操作 def changdelist(nums): nums.append('c') return nums str1=['a','b'] changdelist(str1) #nums ['a', 'b', 'c'] str1 #['a', 'b', 'c'] # 与不是参
阅读全文
摘要:1.调各种背景:样式美化matplotlib.pyplot.style.use定制画布风格 - 知乎 (zhihu.com) 2.
阅读全文
摘要:参考连接1:https://zhuanlan.zhihu.com/p/416083478 更清楚 参考连接2:https://blog.csdn.net/weixin_43178406/article/details/89517008 更全面 1、requires_grad 在pytorch中,te
阅读全文
摘要:迭代--一个接一个地读取列表中值的过程 list1=[1,2,3] for i in list1: print(i,end=' ') # 1 2 3 list2=[x*x for x in range(5)] for i in list2: print(i,end=' ') # 0 1 4 9 16
阅读全文