Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson13-5
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
e7446e39
authored
Jul 31, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
d42bd633
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
12 deletions
a.py
diy.py
sales_list.txt
test.py
a.py
0 → 100644
View file @
e7446e39
a
=
input
(
'请输入:'
)
q
=
[]
for
i
in
a
:
if
i
not
in
'0123456789'
:
q
.
append
(
i
)
print
(
q
)
\ No newline at end of file
diy.py
View file @
e7446e39
with
open
(
r'c:\Users\Administrator\Documents\lesson13-
3\sales_list.txt'
,
'r'
,
encoding
=
'utf-8'
)
as
jjj
:
klj
=
jjj
.
readlines
()
shuzhi666
=
open
(
r'C:\Users\Administrator\Desktop\
xiaoheizi
.txt'
,
'w'
,
encoding
=
'utf-8'
)
with
open
(
r'c:\Users\Administrator\Documents\lesson13-
5\sales_list.txt'
,
'r'
,
encoding
=
'utf-8'
)
as
kun
:
basketball
=
kun
.
readlines
()
shuzhi666
=
open
(
r'C:\Users\Administrator\Desktop\
小黑子树枝666
.txt'
,
'w'
,
encoding
=
'utf-8'
)
kaituan
=
0
gg
g
=
0
gggl
=
0
ggjjj
=
0
chan
g
=
0
tiao
=
0
rap
=
0
lizhi
=
[]
for
i
in
klj
:
for
i
in
basketball
:
kunkun
=
i
.
split
()
print
(
kunkun
[
0
])
gg
g
=
str
(
kunkun
[
0
])
chan
g
=
str
(
kunkun
[
0
])
ikun
=
kunkun
[
1
:]
for
jinitaimei
in
ikun
:
kaituan
+=
int
(
jinitaimei
)
print
(
kaituan
)
gggl
=
str
(
kaituan
)
+
'
\n
'
ggjjj
=
ggg
+
gggl
lizhi
.
append
(
ggjjj
)
tiao
=
str
(
kaituan
)
+
'
\n
'
rap
=
chang
+
tiao
lizhi
.
append
(
rap
)
kaituan
=
0
shuzhi666
.
writelines
(
lizhi
)
\ No newline at end of file
sales_list.txt
View file @
e7446e39
...
...
@@ -7,8 +7,13 @@
李强 12 12 11 15 11 13 25 26 11 13 15
孙小白 25 26 12 15 27 30 48 39
苏琪 15 11 15 15 30 13 27 11
蔡徐坤 100000 10000 4000 500 10 4
马达老师 30000000000000000 56400000000000000 3455536570000000000000000
王甜心 3892748912739586 873465736587345 39482672568932765832 3246832582475693847962 4359263498245698427 45832645395694 975367578562783256 3758785789567854787 5497898975789602607892
刘若若 11 11 13 11 20 15 13 29 24
马云 100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
马化腾 -1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
刘阳 11 15 22 11 23 26 22 15 17 52 12
王鑫松 -1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999998
王胜男 27 15 15 26 13 12 15
王娇 12 11 12 12 15 35 23 11
test.py
0 → 100644
View file @
e7446e39
a
=
[
1
,
2
,
3
,
4
,
5
]
print
(
a
[:
3
]
==
a
[:
-
2
])
\ 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