Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-1
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
2f8f1561
authored
Oct 12, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
74a9cbd6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
22 deletions
a.py
coco1.py
coke1.py
diy.py
s.py
a.py
0 → 100644
View file @
2f8f1561
import
turtle
a
=
turtle
.
Pen
()
b
=
input
(
"请输入五角星的颜色:"
)
a
.
fillcolor
(
b
)
a
.
begin_fill
()
for
i
in
range
(
5
):
a
.
forward
(
200
)
a
.
right
(
144
)
a
.
end_fill
()
turtle
.
done
()
\ No newline at end of file
coco1.py
View file @
2f8f1561
...
@@ -6,7 +6,7 @@ import random
...
@@ -6,7 +6,7 @@ import random
list
=
[
"石头"
,
"剪刀"
,
"布"
]
list
=
[
"石头"
,
"剪刀"
,
"布"
]
computer
=
random
.
choice
(
list
)
computer
=
random
.
choice
(
list
)
print
(
computer
)
print
(
computer
)
if
piayer
in
list
:
if
piayer
in
list
:
if
piayer
==
computer
:
if
piayer
==
computer
:
print
(
"平局"
)
print
(
"平局"
)
elif
piayer
==
"石头"
and
computer
==
"剪刀"
:
elif
piayer
==
"石头"
and
computer
==
"剪刀"
:
...
@@ -16,6 +16,14 @@ if piayer in list:
...
@@ -16,6 +16,14 @@ if piayer in list:
elif
piayer
==
"布"
and
computer
==
"石头"
:
elif
piayer
==
"布"
and
computer
==
"石头"
:
print
(
"嬴"
)
print
(
"嬴"
)
else
:
else
:
print
(
”输“
)
print
(
"输"
)
else
:
else
:
print
(
"错了"
)
print
(
"错了"
)
\ No newline at end of file
coke1.py
0 → 100644
View file @
2f8f1561
zh
=
input
(
"你是否认罪?"
)
sj
=
input
(
"你是否认罪?"
)
if
zh
==
"认罪"
and
sj
==
"认罪"
print
(
"都判十年"
)
elif
zh
==
"认罪"
and
sj
==
"不认罪"
print
(
"zh1年,sj20年"
)
diy.py
View file @
2f8f1561
_
=
[
"刘备"
,
"关羽"
,
"张飞"
]
name
=
input
(
"请输入星期几:"
)
_
[
0
]
=
"关羽"
if
name
==
"星期一"
:
_
[
1
]
=
"刘备"
print
(
"学钢琴"
)
print
(
_
)
elif
name
==
"星期三"
:
print
(
"学编程"
)
elif
name
==
"星期六"
:
print
(
"学英语"
)
else
:
print
(
"学国学"
)
_
.
pop
(
0
)
_
.
remove
(
"关羽"
)
duuy
=
[
"bg"
,
"eg"
]
_
.
append
(
"tyfyhfyjffj"
)
_
.
extend
(
duuy
)
_
.
insert
(
1
,
"fttrfjrfrf"
)
s.py
0 → 100644
View file @
2f8f1561
import
turtle
a
=
turtle
.
Pen
()
s
=
turtle
.
Screen
()
d
=
s
.
textinput
(
"提示"
,
"你要爱心多大?"
)
f
=
int
(
d
)
s
.
bgcolor
(
"blue"
)
a
.
pensize
(
5
)
a
.
pencolor
(
"red"
)
a
.
left
(
45
)
a
.
forward
(
2
*
f
)
a
.
circle
(
f
,
180
)
a
.
right
(
90
)
a
.
circle
(
f
,
180
)
a
.
forward
(
2
*
f
)
a
.
penup
()
a
.
goto
(
100
,
-
100
)
a
.
write
(
"阿斯顿法国红酒
\n
看来自行车
\n
v不那么"
,
font
=
(
"Times"
,
30
,
"normal"
))
a
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
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