Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7263f4d

Browse files
fix(day03): 文件名规范化
1 parent 9f96070 commit 7263f4d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎day03/code/practice2_1.py‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
"""
2+
掷骰子决定做什么事情
3+
摇出 1~6 的数字,判断要做什么事
4+
5+
Version: 1.0.0
6+
Author: Jalan
7+
"""
8+
9+
from random import randint
10+
11+
d = {1: "吃饭", 2: "睡觉", 3: "喵喵叫", 4: "汪汪叫", 5: "打豆豆", 6: "写代码"}
12+
# 产生 1-6 的随机数
13+
num = randint(1, 6)
14+
15+
print(d[num])

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /