02 2022 档案

摘要:1、函数传参 传参是赋值操作 def changdelist(nums): nums.append('c') return nums str1=['a','b'] changdelist(str1) #nums ['a', 'b', 'c'] str1 #['a', 'b', 'c'] # 与不是参 阅读全文
posted @ 2022-02-19 10:52 Monster1728 阅读(51) 评论(0) 推荐(0) 编辑
摘要:1.调各种背景:样式美化matplotlib.pyplot.style.use定制画布风格 - 知乎 (zhihu.com) 2. 阅读全文
posted @ 2022-02-12 08:47 Monster1728 阅读(33) 评论(0) 推荐(0) 编辑
摘要:参考连接1:https://zhuanlan.zhihu.com/p/416083478 更清楚 参考连接2:https://blog.csdn.net/weixin_43178406/article/details/89517008 更全面 1、requires_grad 在pytorch中,te 阅读全文
posted @ 2022-02-06 15:23 Monster1728 阅读(671) 评论(0) 推荐(0) 编辑
摘要:迭代--一个接一个地读取列表中值的过程 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 阅读全文
posted @ 2022-02-05 12:33 Monster1728 阅读(113) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示