上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 125 下一页
摘要: 在线深度学习 https://zh.d2l.ai/chapter_installation/index.html 阅读全文
posted @ 2024-01-13 14:04 txwtech 阅读(17) 评论(0) 推荐(0)
摘要: 基本的序列和映射协议 类实例化当作字典使用,构造函数初始化参数 序列和映射基本上是元素(item)的集合,要实现它们的基本行为(协议),不可变对象需 要实现2个方法,而可变对象需要实现4个。  __len__(self):这个方法应返回集合包含的项数,对序列来说为元素个数,对映射来说 为键值对数 阅读全文
posted @ 2024-01-10 14:07 txwtech 阅读(28) 评论(0) 推荐(0)
摘要: 55.system.exit()退出-不执行-所在函数方法后续代码,类似c# return 翻译 搜索 复制 阅读全文
posted @ 2024-01-09 13:24 txwtech 阅读(26) 评论(0) 推荐(0)
摘要: f __name__ == '__main__': print('test211') alist = [1,2,3,4,5,6,7,8,9] blist = list(filter((lambda x:x%2==0),alist)) print(blist) clist = list(map((la 阅读全文
posted @ 2024-01-09 08:42 txwtech 阅读(11) 评论(0) 推荐(0)
摘要: 53.python类的继承与构造函数 # This is a sample Python script. # Press Shift+F10 to execute it or replace it with your code. # Press Double Shift to search ever 阅读全文
posted @ 2024-01-08 22:42 txwtech 阅读(28) 评论(0) 推荐(0)
摘要: pycharm社区版下载方法pycharm-community-2023.3.2.exe https://www.jetbrains.com.cn/ pycharm-community-2023.3.2.exe 阅读全文
posted @ 2024-01-08 21:36 txwtech 阅读(338) 评论(0) 推荐(0)
摘要: 52.python收集参数 def print_params(*params): # *接受元组,一个星号 print(params) def print_params2(tt2, *params): # *接受元组 print(tt2) print(params) def print_params 阅读全文
posted @ 2024-01-07 21:35 txwtech 阅读(18) 评论(0) 推荐(0)
摘要: employee就是包 导入包,使用时默认调用__init__.py文件 class Employee: __wwid = '' # 两个__下划线表示private私有变量 __name = '' wwid = 'cd987' # public公有变量 def set_wwid(self, wwi 阅读全文
posted @ 2024-01-07 21:18 txwtech 阅读(31) 评论(0) 推荐(0)
摘要: http://106.14.252.86/index.html usb摄像头测试软件 阅读全文
posted @ 2024-01-07 20:58 txwtech 阅读(5442) 评论(0) 推荐(0)
摘要: Git提示“warning: LF will be replaced by CRLF,删除对应文件,文件格式不对引起的问题 翻译 搜索 复制 阅读全文
posted @ 2024-01-05 09:27 txwtech 阅读(36) 评论(0) 推荐(0)
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 125 下一页