上一页 1 ··· 576 577 578 579 580 581 582 583 584 ··· 640 下一页
摘要: 了解:模块的重载 考虑到性能的原因,每个模块只被导入一次,放入字典sys.module中,如果你改变了模块的内容,你必须重启程序,p... 阅读全文
posted @ 2022-10-07 20:30 I'm_江河湖海 阅读(26) 评论(0) 推荐(0)
摘要: 1、print,直接打印,比较简单而且粗暴 在代码中直接输入print+需要输出的结果,根据打印的内容判断即可 2、assert... 阅读全文
posted @ 2022-10-07 20:30 I'm_江河湖海 阅读(44) 评论(0) 推荐(0)
摘要: 1、print,直接打印,比较简单而且粗暴 在代码中直接输入print+需要输出的结果,根据打印的内容判断即可 2、assert... 阅读全文
posted @ 2022-10-07 20:30 I'm_江河湖海 阅读(47) 评论(0) 推荐(0)
摘要: 在os模块中提供了两种调用 cmd 的方法,os.popen()和 os.system() os.system(cmd) 是在执行... 阅读全文
posted @ 2022-10-07 20:30 I'm_江河湖海 阅读(32) 评论(0) 推荐(0)
摘要: 在os模块中提供了两种调用 cmd 的方法,os.popen()和 os.system() os.system(cmd) 是在执行... 阅读全文
posted @ 2022-10-07 20:30 I'm_江河湖海 阅读(36) 评论(0) 推荐(0)
摘要: 创建有序字典 import collectionsdic = collections.OrderedDict()dic['k1'] ... 阅读全文
posted @ 2022-10-07 20:30 I'm_江河湖海 阅读(53) 评论(0) 推荐(0)
摘要: 创建有序字典 import collectionsdic = collections.OrderedDict()dic['k1'] ... 阅读全文
posted @ 2022-10-07 20:30 I'm_江河湖海 阅读(43) 评论(0) 推荐(0)
摘要: 这篇文章主要介绍了Python中使用item()方法遍历字典的例子,for...in这种是Python中最常用的遍历字典的方法了,需... 阅读全文
posted @ 2022-10-07 20:30 I'm_江河湖海 阅读(52) 评论(0) 推荐(0)
摘要: 这篇文章主要介绍了Python中使用item()方法遍历字典的例子,for...in这种是Python中最常用的遍历字典的方法了,需... 阅读全文
posted @ 2022-10-07 20:30 I'm_江河湖海 阅读(33) 评论(0) 推荐(0)
摘要: 一、引用 使用到的全局变量只是作为引用,不在函数中修改它的值的话,不需要加global关键字。如: a = 1b = [2, 3]d... 阅读全文
posted @ 2022-10-07 20:30 I'm_江河湖海 阅读(61) 评论(0) 推荐(0)
上一页 1 ··· 576 577 578 579 580 581 582 583 584 ··· 640 下一页