Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-1-2_DIY1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1f9dd086
authored
Apr 30, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
8a2a0c03
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
4 deletions
diy.py
diy1.py
diy2.py
star.py
diy.py
0 → 100644
View file @
1f9dd086
import
random
a
=
input
(
"请輸入石头/剪刀/布"
)
print
(
"玩家请出拳"
+
a
)
c
=
[
"石头"
,
"剪刀"
,
"布"
]
d
=
random
.
choice
(
c
)
print
(
"计算机出的是"
+
d
)
if
a
==
d
:
print
(
"平局"
)
elif
a
==
"石头"
and
d
==
"剪刀"
or
a
==
"剪刀"
and
d
==
"布"
or
a
==
"布"
and
d
==
"石头"
:
print
(
"玩家胜"
)
else
:
print
(
"计算机胜"
)
\ No newline at end of file
diy1.py
View file @
1f9dd086
a
=
input
(
"请輸入石头/剪刀/布)
import
random
print("
玩家请出拳
")
a
=
input
(
"请輸入石头/剪刀/布"
)
\ No newline at end of file
#print("玩家请出拳"+a)
#c=["石头","剪刀","布"]
#d=random.choice(c)
#print("计算机出的是"+d)
#if a==d:
# print("平局")
#elif a=="石头" and d=="剪刀" or a=="剪刀" and d=="布" or a=="布" and d=="石头":
# print("玩家胜")
#else:
# print("计算机胜")
\ No newline at end of file
diy2.py
0 → 100644
View file @
1f9dd086
star.py
View file @
1f9dd086
# 上节课你是这样绘制的五角星
👇
:
# 上节课你是这样绘制的五角星:
# 这节课你可以利用新学的知识自定义五角星的颜色么?
# 这节课你可以利用新学的知识自定义五角星的颜色么?
import
turtle
import
turtle
ink
=
input
(
"什么色?"
)
#绘制五角星#
ink
=
input
(
"什么色?"
)
#绘制五角星#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment