![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
ZGC_demo
这个作者很懒,什么都没留下…
展开
-
Python文件在Sublime上运行时报TabError: inconsistent use of tabs and spaces in indentation——解决方法
可以先将代码复制到PyCharm,在复制会Sublime运行即可。原创 2018-07-06 17:09:13 · 858 阅读 · 0 评论 -
Python实现指定文件夹的文件批量按序重命名
Python实现指定文件夹的文件批量按序重命名 import os # 文件夹路径 dir_path = './music' # 文件扩展名 extent_name = 'mp3' def read_dir(path, ext): i = 1 # 路径是否存在 if not os.path.exists(path): print('The path does not exit!') else: files = os.listdir(p原创 2020-09-03 20:51:32 · 320 阅读 · 0 评论 -
001——搭建Python运行环境
1、检查是否安装了Python 打开终端; 输入python; 若出现>>>,则说明已安装; 若不是,则需安装python。2、安装Python 在python官网下载python; 点击安装; 在安装时,需要记得勾选复选框Add Python to PATH; 安装后...原创 2018-04-20 07:56:52 · 544 阅读 · 0 评论