会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lingxiasandu
孤烟半刻散 蕈花一日凋 冰河三尺厚 罗衾五更寒
博客园
首页
新随笔
联系
订阅
管理
2019年9月3日
python读取配置文件中的信息
摘要: 一、ConfigParser模块简介 假设有如下配置文件,需要在Pyhton程序中读取 config.ini [db] db_port = 3306 db_user = root db_host = 127.0.0.1 db_pass = 123456789 config.ini [db] db_p
阅读全文
posted @ 2019-09-03 16:37 lingxiasandu
阅读(4030)
评论(0)
推荐(0)
2019年8月22日
python操作excel表格
摘要: 在用excel实际数据驱动时会用到excel操作. 数据的导入导出等. 下面来自关关的文章写的很好: https://www.cnblogs.com/zeke-python-road/p/8986318.html
阅读全文
posted @ 2019-08-22 09:43 lingxiasandu
阅读(114)
评论(0)
推荐(0)
2019年8月19日
python反射的简单应用
摘要: class Cartoon(object): def __init__(self): self.name = "哪吒" def func(self): return "魔童降世" # 创建要操作的类的对象 obj = Cartoon() # 1. 查看属性 print(obj.name) # 2. 判断类中是否有该成员,当找到第二个参数时返回true,否则返回false have_1 = hasa
阅读全文
posted @ 2019-08-19 11:10 lingxiasandu
阅读(139)
评论(0)
推荐(0)
2019年8月15日
python读取txt文件
摘要: 应用场景: 测试过程中如果需要脚本进行数据读取. 在 一个data.txt文件中,有如下格式的数据: url:http://www.weather/api/city/signup,mobilephone:13060246701,pwd:123456 url:http://www.weather/ap
阅读全文
posted @ 2019-08-15 15:29 lingxiasandu
阅读(748)
评论(0)
推荐(0)
公告