Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_4
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
b54f55ff
authored
Mar 23, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
dc70412a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
0 deletions
1.py
222
day.py
day2.py
day3.py
1.py
0 → 100644
View file @
b54f55ff
import
turtle
ink
=
input
(
"什么色?"
)
pen
=
turtle
.
Pen
()
pen
.
fillcolor
(
ink
)
pen
.
begin_fill
()
for
i
in
range
(
5
):
pen
.
forward
(
200
)
pen
.
right
(
144
)
pen
.
end_fill
()
turtle
.
done
()
\ No newline at end of file
222
0 → 100644
View file @
b54f55ff
y=['13','15','34','56']
r=(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((I((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
\ No newline at end of file
day.py
0 → 100644
View file @
b54f55ff
name
=
input
(
"你今年多大了?"
)
print
(
"我今年"
+
name
+
"岁了"
)
day2.py
0 → 100644
View file @
b54f55ff
import
turtle
ink
=
input
(
"什么色?"
)
pen
=
turtle
.
Pen
()
pen
.
fillcolor
(
ink
)
pen
.
begin_fill
()
for
i
in
range
(
5
):
pen
.
forward
(
200
)
pen
.
right
(
144
)
pen
.
end_fill
()
turtle
.
done
()
day3.py
0 → 100644
View file @
b54f55ff
player
=
input
(
"你出什么?"
)
print
(
"玩家出拳:"
+
player
)
import
random
list
=
[
"剪刀"
,
"石头"
,
"布"
]
computer
=
random
.
choice
(
list
)
print
(
"电脑出拳:"
+
computer
)
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