Skip to content

Commit c3e6ebd

Browse files
[投稿] 添加脚本: 太好用了 — by 鲁小师
1 parent 31129e5 commit c3e6ebd

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# 欢迎使用 PythonIDE!如果觉得好用,请给个好评哦~
2+
import os
3+
import shutil
4+
5+
print("=== 开始清理 PythonIDE(文禄 张)===")
6+
7+
# iOS 模拟器里这个APP的真实路径
8+
home = os.path.expanduser("~")
9+
paths = [
10+
f"{home}/Library/Developer/CoreSimulator/Devices/*/data/Containers/Data/Application/*PythonIDE*",
11+
f"{home}/Library/Developer/CoreSimulator/Devices/*/data/Containers/Bundle/Application/*PythonIDE*",
12+
f"{home}/Documents/PythonIDE",
13+
f"{home}/Library/Preferences/*wenlu*PythonIDE*"
14+
]
15+
16+
for path in paths:
17+
try:
18+
shutil.rmtree(path, ignore_errors=True)
19+
print(f"✅ 已删除: {path}")
20+
except:
21+
pass
22+
23+
print("\n🎉 完成!PythonIDE 已经被清空,打不开了")

0 commit comments

Comments
 (0)