Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-1-1_DIY1
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
dd4b8471
authored
Feb 20, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
989f0db5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
7 deletions
1.py
666.py
diy1.py
s.py
1.py
0 → 100644
View file @
dd4b8471
import
random
n
=
input
(
"n="
)
m
=
input
(
"m="
)
666.py
0 → 100644
View file @
dd4b8471
n
=
int
(
input
(
"请输入时间:"
))
if
n
<=
2
:
print
(
"五元"
)
else
:
print
(
str
((
n
-
2
)
*
2
+
5
)
+
"元"
)
diy1.py
View file @
dd4b8471
# 利用write()帮助悟空给诺依回信吧~
import
turtle
Pen
=
turtle
.
Pen
()
Pen
.
write
(
"傻逼你发个头!
\n
小张"
,
font
=
(
"Times"
,
50
,
"normal"
))
Pen
.
hideturtle
()
turtle
.
done
()
print
(
''''''
)
\ No newline at end of file
s.py
0 → 100644
View file @
dd4b8471
list
=
[
"1--星期一"
,
"2--星期二"
,
"3--星期三"
,
"4--星期四"
,
"5--星期五"
,
"6--星期六"
,
"7--星期天"
]
while
True
:
n
=
input
(
"请输入数字:"
)
print
(
list
[
int
(
n
)
-
1
])
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