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
6c34f744
authored
Mar 21, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c2f1308f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
diy1.py
hello.py
diy1.py
View file @
6c34f744
# 利用write()帮助悟空给诺依回信吧~
dict_10
=
{
"加热"
:
88
,
"金额"
:
37
,
"解耦"
:
53
,
"积分"
:
19
}
\ No newline at end of file
computer
=
input
(
"你叫什么名字"
)
score
=
input
(
"你的分数是多少"
)
if
computer
in
dict_10
:
if
int
(
score
)
>
dict_10
[
computer
]:
dict_10
[
computer
]
=
score
print
(
computer
+
"同学"
+
"你的分数已更新"
)
else
:
print
(
"没有变化"
)
else
:
dict_10
[
computer
]
=
int
(
score
)
print
(
"haole"
)
hello.py
0 → 100644
View file @
6c34f744
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