This commit is contained in:
2026-05-09 20:45:14 +08:00
commit 46c2ad1f36
5 changed files with 849 additions and 0 deletions

10
list_dir.py Normal file
View File

@@ -0,0 +1,10 @@
import os
# 修改为你要扫描的目录
target_dir = "J:\Python\ZhuanStudio\chars_gui" # Windows 也可以用 C:\\Users\\xxx\\Desktop
# 列出所有文件,一行一个
for filename in os.listdir(target_dir):
# 只输出文件,不输出文件夹
if os.path.isfile(os.path.join(target_dir, filename)):
print(filename)