Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-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
758f4e1e
authored
Feb 25, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
172ee8c9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
diy.py
p.dy
diy.py
View file @
758f4e1e
score
=
{
'小雅'
:
100
,
'小宇'
:
88
,
k
=
input
(
'姓名'
)
v
=
input
(
'最新成绩'
)
if
k
in
score
:
if
int
(
v
)
>
score
[
k
]:
score
[
k
]
=
int
(
v
)
print
(
k
+
'同学'
+
v
+
'分'
)
else
:
print
(
k
+
'同学'
没有
)
else
:
score
[
k
]
=
int
(
v
)
print
(
k
+
'同学'
+
v
+
'相同'
)
\ No newline at end of file
import
jieba
text
=
"他来自家里蹲大学"
txt_list
=
jieba
.
lcut
(
text
)
print
(
txt_list
)
\ No newline at end of file
p.dy
0 → 100644
View file @
758f4e1e
TNT=[12,51,15,4,5]
={}
TNT.insert(0,'5')
print(TNT)
TNT.insert(4,float(5.2))
print(TNT)
\ 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