- 博客(4)
- 收藏
- 关注
转载 python读取配置文件中的信息
一、ConfigParser模块简介假设有如下配置文件,需要在Pyhton程序中读取config.ini[db]db_port = 3306db_user = rootdb_host = 127.0.0.1db_pass = 123456789 如何读取呢方法一:cp = configparser.Co...
2019-09-03 16:37:00
272
转载 python操作excel表格
在用excel实际数据驱动时会用到excel操作.数据的导入导出等.下面来自关关的文章写的很好:https://www.cnblogs.com/zeke-python-road/p/8986318.html转载于:https://www.cnblogs.com/0xiasandu/p/11392605.html...
2019-08-22 09:43:00
61
转载 python反射的简单应用
class Cartoon(object): def __init__(self): self.name = "哪吒" def func(self): return "魔童降世"# 创建要操作的类的对象obj = Cartoon()# 1. 查看属性print(obj.name)# 2...
2019-08-19 11:10:00
71
转载 python读取txt文件
应用场景: 测试过程中如果需要脚本进行数据读取.在 一个data.txt文件中,有如下格式的数据:url:http://www.weather/api/city/signup,mobilephone:13060246701,pwd:123456url:http://www.weather/api/city/signin,mobilephone:15678934552,pwd...
2019-08-15 15:29:00
328
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人