Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson13-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
8d8c1312
authored
Aug 01, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
facbffdd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
0 deletions
1.py
2.py
SJ.py
画上黄下红的正方形.py
1.py
0 → 100644
View file @
8d8c1312
import
turtle
pen
=
turtle
.
Pen
()
pen
.
goto
(
0
,
0
)
pen
.
left
(
90
)
pen
.
fillcolor
(
"yellow"
)
pen
.
begin_fill
()
pen
.
forward
(
180
)
pen
.
right
(
90
)
pen
.
forward
(
180
)
pen
.
goto
(
0
,
0
)
pen
.
end_fill
()
pen
.
fillcolor
(
"red"
)
pen
.
begin_fill
()
pen
.
forward
(
180
)
pen
.
left
(
90
)
pen
.
forward
(
180
)
pen
.
goto
(
0
,
0
)
pen
.
end_fill
()
pen
.
hideturtle
()
turtle
.
done
()
print
(
int
(
6.9
))
\ No newline at end of file
2.py
0 → 100644
View file @
8d8c1312
try
:
a
=
int
(
input
(
"请输入整数"
))
except
:
print
(
"要输入整数啊"
)
else
:
if
a
<
18
:
print
(
"不可以喝酒哦"
)
print
(
"程序结束"
)
\ No newline at end of file
SJ.py
0 → 100644
View file @
8d8c1312
a
=
b
=
c
=
0
time
=
input
(
"请输入秒数:"
)
time1
=
int
(
time
)
a
=
time1
//
3600
b
=
time1
%
3600
//
60
c
=
time1
%
60
print
(
a
,
"小时,"
,
b
,
"分钟,"
,
c
,
"秒"
)
画上黄下红的正方形.py
0 → 100644
View file @
8d8c1312
import
turtle
import
turtle
pen
=
turtle
.
Pen
()
pen
.
goto
(
0
,
0
)
pen
.
left
(
90
)
pen
.
fillcolor
(
"yellow"
)
pen
.
begin_fill
()
pen
.
forward
(
180
)
pen
.
right
(
90
)
pen
.
forward
(
180
)
pen
.
goto
(
0
,
0
)
pen
.
end_fill
()
pen
.
fillcolor
(
"red"
)
pen
.
begin_fill
()
pen
.
forward
(
180
)
pen
.
left
(
90
)
pen
.
forward
(
180
)
pen
.
goto
(
0
,
0
)
pen
.
end_fill
()
pen
.
hideturtle
()
turtle
.
done
()
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