上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 133 下一页
摘要: 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 阅读(18) 评论(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 阅读(44) 评论(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 阅读(402) 评论(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 阅读(37) 评论(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 阅读(43) 评论(0) 推荐(0)
摘要: http://106.14.252.86/index.html usb摄像头测试软件 阅读全文
posted @ 2024-01-07 20:58 txwtech 阅读(6325) 评论(0) 推荐(0)
摘要: Git提示“warning: LF will be replaced by CRLF,删除对应文件,文件格式不对引起的问题 翻译 搜索 复制 阅读全文
posted @ 2024-01-05 09:27 txwtech 阅读(49) 评论(0) 推荐(0)
摘要: 50.读取ini配置文件与使用日志模块logging记录日志信息保存日志文件 dept.ini [robots] fxl: L223 ttw: L856 ssy: M398 result_msg: this is ini file pii:3.625412 [visions] ll:k566 zel 阅读全文
posted @ 2024-01-04 16:49 txwtech 阅读(129) 评论(0) 推荐(0)
摘要: mail_list = '123<aa2@163.com>acdef, 123123;<ba1@qq.com>acdef,;w8<aah@163.com>acdef,;dtg<ca@186.com>acdef,;jjdtg<qd@163.com>acdef,;jjtr' print('提取所有邮件地 阅读全文
posted @ 2024-01-04 14:33 txwtech 阅读(345) 评论(0) 推荐(0)
摘要: Python 正则表达式(RegEx) 在本教程中,您将学习正则表达式(RegEx),并使用Python的re模块与RegEx一起使用(在示例的帮助下)。 正则表达式(RegEx)是定义搜索模式的字符序列。 例如, ^a...s$ 上面的代码定义了RegEx模式。模式是:以a开头并以s结尾的任何五个 阅读全文
posted @ 2024-01-04 10:49 txwtech 阅读(304) 评论(0) 推荐(0)
上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 133 下一页