8000 update · joyDDT/python_code@3aae56c · GitHub
[go: up one dir, main page]

Skip to content

Commit 3aae56c

Browse files
author
joyDDT
committed
update
1 parent 7308e8b commit 3aae56c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

py/doc_bar.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import time
2+
3+
for i in range(101):
4+
print("\r{:2}%".format(i), end="")
5+
time.sleep(0.2)

py/week.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# printing a weekday depends on users' input
2+
week = "一二三四五六日"
3+
w = eval(input())
4+
print("星期" + week[w - 1])
5+
while 0<w<8:
6+
w = eval(input())
7+
print("星期" + week[w - 1])

0 commit comments

Comments
 (0)
0