Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson1_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
7c8db6e5
authored
Jul 24, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
2fca5562
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
35 deletions
kuozhan.py
star.py
task2.py
xxx.py
kuozhan.py
View file @
7c8db6e5
a1
=
input
(
"指挥你认罪吗?请回答认罪或不认?"
)
a2
=
input
(
"柴可夫斯基你认罪吗?请回答认罪或不认?"
)
huida_list
=
[
"认罪"
,
"不认"
]
if
a1
in
huida_list
and
a2
in
huida_list
:
if
a1
==
a2
==
"认罪"
:
print
(
"都判十年"
)
if
a1
==
a2
==
"不认"
:
print
(
"都判3年"
)
if
a1
==
"认罪"
and
a2
==
"不认"
:
print
(
"指挥判一年,柴可夫斯基判20年"
)
if
a1
==
"不认"
and
a2
==
"认罪"
:
print
(
"柴可夫斯基判一年,指挥判20年"
)
else
:
print
(
"他妈的,叫你答非所问,给老子打!"
)
\ No newline at end of file
import
turtle
pen
=
turtle
.
Pen
()
screen
=
turtle
.
Screen
()
size
=
screen
.
textinput
(
"提示"
,
"你想要多大的魔法阵?"
)
pen
.
circle
(
int
(
size
),
360
)
pen
.
circle
(
int
(
size
),
360
,
3
)
pen
.
circle
(
int
(
size
),
60
)
pen
.
circle
(
int
(
size
),
360
,
3
)
turtle
.
done
()
\ No newline at end of file
star.py
View file @
7c8db6e5
import
random
name
=
input
(
"请输入姓名:"
)
chou_list
=
[
"手机"
,
"电脑"
,
"个屁"
,
"荣耀水晶"
,
"一百万"
]
gift
=
random
.
choice
(
chou_list
)
print
(
"恭喜你,幸运的创造师--"
+
name
+
",获得了"
+
gift
)
\ No newline at end of file
import
turtle
import
random
pen
=
turtle
.
Pen
()
len
=
random
.
randint
(
50
,
100
)
jiao
=
random
.
randint
(
3
,
10
)
for
i
in
range
(
jiao
):
pen
.
forward
(
100
)
pen
.
right
(
360
/
jiao
)
turtle
.
done
()
task2.py
View file @
7c8db6e5
name
=
input
(
"请输入名字"
)
CJ
=
input
(
"请输入成绩"
)
print
(
name
+
"的英语成绩是:"
+
CJ
)
\ No newline at end of file
import
turtle
pen
=
turtle
.
Pen
()
pen
.
left
(
45
)
pen
.
circle
(
50
,
180
)
pen
.
left
(
90
)
pen
.
forward
(
100
)
pen
.
left
(
180
)
pen
.
circle
(
-
50
,
180
)
pen
.
right
(
90
)
pen
.
forward
(
100
)
turtle
.
done
()
\ No newline at end of file
xxx.py
View file @
7c8db6e5
xingqi
=
input
(
"今天星期几?"
)
if
xingqi
==
"星期一"
:
print
(
"今天学钢琴"
)
if
xingqi
==
"星期三"
:
print
(
"今天学编程"
)
if
xingqi
==
"星期六"
:
print
(
"今天学英语"
)
else
:
print
(
"今天学国学"
)
\ No newline at end of file
import
turtle
pen
=
turtle
.
Pen
()
pen
.
pensize
(
10
)
pen
.
pencolor
(
"blue"
)
pen
.
circle
(
50
,
360
)
pen
.
penup
()
pen
.
forward
(
90
)
pen
.
pencolor
(
"black"
)
pen
.
pendown
()
pen
.
circle
(
50
,
360
)
pen
.
penup
()
pen
.
forward
(
90
)
pen
.
pencolor
(
"red"
)
pen
.
pendown
()
pen
.
circle
(
50
,
360
)
pen
.
left
(
90
)
pen
.
penup
()
pen
.
forward
(
30
)
pen
.
left
(
90
)
pen
.
forward
(
50
)
pen
.
pendown
()
pen
.
pencolor
(
"green"
)
pen
.
circle
(
50
,
360
)
pen
.
penup
()
pen
.
forward
(
90
)
pen
.
pendown
()
pen
.
pencolor
(
"yellow"
)
pen
.
circle
(
50
,
360
)
pen
.
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