![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jichu python
qq_36373127
这个作者很懒,什么都没留下…
展开
-
关于configparser
学习python的configparser一部分功能 提供实例文本 [liming] age = 18 password = 124578963 [hanmeimei] age = 32 password = 123456789 运行程序 import configparser con = configparser.ConfigParser() #con对象的read原创 2018-02-04 18:20:42 · 184 阅读 · 0 评论 -
通过字符串格式去导入模块以及方法函数(getattr)——python3
通常我们都是用 import +模块 eg: import time 但是上面的time不属于python的基本数据类型,如果想在后面添加可以通过已字符串的格式导入模块 import time def f1(): time.sleep(1) print('这里睡一秒') time.sleep(1) print('这里睡一秒') tim原创 2018-02-06 14:39:59 · 618 阅读 · 0 评论