Python
桥山猪
这个作者很懒,什么都没留下…
展开
-
Python常用内建函数
Python查看内建函数库 dir(__builtin__) 常用内建函数: 1. True & False bool(x) -> bool Returns True when the argument x is true, False otherwise. 继承类int的所有方法 2. abs(x, /) Return the absolute value ...原创 2018-08-09 08:58:56 · 157 阅读 · 0 评论 -
Python中os.path &glob.glob
os.path.join(path1[,path2[,…..]]) 多个路径组合后返回。 Note:第一个绝对路径前的参数忽略掉,常于glob一起使用 path = os.path.join(data_dir,'*.txt') files = glob.glob(path)...原创 2018-08-09 10:56:11 · 1479 阅读 · 0 评论