1 | from gevent import monkey |
1 | from gevent import monkey |
1 | from gevent import monkey |
followlinks表示是否扫描软连接,topdown是否广度遍历1
2
3
4
5
6
7def get_file_path(dir_path):
"""获取文件夹下面的所有文件,包括子文件夹"""
file_list = os.walk(dir_path, topdown=True, onerror=None, followlinks=False)
for root, dirs, files in file_list:
for f in files:
path = os.path.join(root, f)
yield path.replace('\\', '/')
1 | background-color: qlineargradient(spread:repeat, x1: 0, y1: 0, x2: 0, y2: 1, stop: 0#2ba0d6, stop: 1 #138abd); |
1 | QLinearGradient linearGradient(0, 0, 0, 300); |
1 | #upstream mysvr { |
1 | mysqladmin -u用户名 -p旧密码 password 新密码 |
1 | # 设置从特定地址的服务器导出数据, 缺省主机是localhost, 则设置参数-h 或 --host= |