Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson1_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
35fb7ee2
authored
Oct 04, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
342cf29a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
2 deletions
aaa
aaaaaa.py
e.py
h2.py
hello.py
aaa
0 → 100644
View file @
35fb7ee2
aaaaaa.py
0 → 100644
View file @
35fb7ee2
a
=
int
(
input
(
"aaa"
))
spring
=
[
3
,
4
,
5
]
summer
=
[
6
,
7
,
8
]
autumn
=
[
9
,
10
,
11
]
winter
=
[
12
,
1
,
2
]
if
a
in
spring
:
print
(
"这是春天"
)
elif
a
in
summer
:
print
(
"这是夏天"
)
elif
a
in
autumn
:
print
(
"这是秋天"
)
elif
a
in
winter
:
print
(
"这是冬天"
)
else
:
print
(
"你输错了"
)
\ No newline at end of file
e.py
0 → 100644
View file @
35fb7ee2
import
random
a
=
random
.
randint
(
1
,
9
)
while
True
:
b
=
int
(
input
(
"输入1到9的一个数字:"
))
if
a
==
b
:
print
(
"猜对了,目标数字为
%
d"
%
a
)
break
else
:
print
(
"猜错了"
)
continue
\ No newline at end of file
h2.py
0 → 100644
View file @
35fb7ee2
import
turtle
pen
=
turtle
.
Pen
()
pen
.
pencolor
(
"red"
)
pen
.
fillcolor
(
"red"
)
pen
.
begin_fill
()
for
i
in
range
(
5
):
pen
.
forward
(
150
)
pen
.
right
(
144
)
pen
.
end_fill
()
pen
.
hideturtle
()
turtle
.
done
()
\ No newline at end of file
hello.py
View file @
35fb7ee2
print
(
"hello,world!"
)
\ No newline at end of file
import
turtle
pen
=
turtle
.
Pen
()
pen
.
circle
(
20
)
pen
.
penup
()
pen
.
goto
(
0
,
-
20
)
pen
.
pendown
()
pen
.
circle
(
40
)
pen
.
penup
()
pen
.
goto
(
0
,
-
40
)
pen
.
pendown
()
pen
.
circle
(
60
)
pen
.
penup
()
pen
.
goto
(
0
,
-
60
)
pen
.
pendown
()
pen
.
circle
(
80
)
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