Skip to content

Commit a542bd8

Browse files
投稿: cmd2.0修正测试 — by ioo
1 parent ae5676b commit a542bd8

2 files changed

Lines changed: 55 additions & 2 deletions

File tree

script_library/index.json

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"format_version": 1,
3-
"data_version": 84,
4-
"updated": "2026-04-07T11:23:31.644Z",
3+
"data_version": 85,
4+
"updated": "2026-04-07T16:37:23Z",
55
"announcement": null,
66
"categories": [
77
{
@@ -1397,6 +1397,30 @@
13971397
"updated": null,
13981398
"status": "active",
13991399
"lines": 26
1400+
},
1401+
{
1402+
"id": "community_cmd20修正测试__by_ioo",
1403+
"name": "cmd2.0修正测试 — by ioo",
1404+
"name_en": "cmd2.0修正测试 — by ioo",
1405+
"desc": "[投稿] cmd2.0修正测试 — by ioo",
1406+
"desc_en": "[投稿] cmd2.0修正测试 — by ioo",
1407+
"category": "basic",
1408+
"file": "scripts/basic/cmd2_0_mnoj7n30.py",
1409+
"thumbnail": null,
1410+
"version": 1,
1411+
"file_type": "py",
1412+
"author": "社区投稿",
1413+
"author_en": "社区投稿",
1414+
"tags": [
1415+
"community",
1416+
"basic"
1417+
],
1418+
"requires": [],
1419+
"min_app_version": "1.5.0",
1420+
"added": "2026-04-07",
1421+
"updated": null,
1422+
"status": "active",
1423+
"lines": 29
14001424
}
14011425
]
14021426
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# 欢迎使用 PythonIDE!如果觉得好用,请给个好评哦~
2+
import json
3+
from pathlib import Path
4+
import time
5+
import random
6+
Y = "\033[93m"
7+
print("==========by ioo project==========")
8+
time.sleep(1)
9+
print("= 这是一个测试文件 =")
10+
time.sleep(1)
11+
print("=使用我的作品 模拟cmd可能会出现一些问题=")
12+
time.sleep(1)
13+
print("= 建议使用此工具进行测试 =")
14+
for i in range(51):
15+
percent = i *2
16+
print(f"\r|{ '█' * i }{ ' ' * (50 - i) }|{ percent }%", end="")
17+
time.sleep(random.uniform(0.1, 0.3))
18+
path=Path("dosfile.txt")
19+
if path.exists():
20+
file=json.loads(path.read_text())
21+
print(file)
22+
print("= 测试成功4.1 =")
23+
else:
24+
file={"command.com":"bin","io.sys":"sys"}
25+
print("\n= 错误,已修复 =")
26+
path.write_text(json.dumps(file))
27+
k="#愚人节做的嘿嘿"
28+
if input(">") == "Y":
29+
print(k)

0 commit comments

Comments
 (0)