- 博客(2)
- 收藏
- 关注
原创 python 文件目录操作
1.分离文件名后缀 os.path.splitext("C:/test.txt")[1] # 输出.txt 2.目录是否存在,不存在则创建 if not os.path.exists(dir): os.makedirs(dir) 3.获取当前.py文件所在目录 os.path.dirname(os.path.abspath(__file__)) 4.获取main函数所在p...
2017-08-23 15:22:32
169
转载 .net DataTable 转换为 List
private List TableToEntity(DataTable dt) where T : class,new() { Type type = typeof(T); List list = new List(); string tempName = ""; forea
2016-12-07 17:59:50
826
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人