Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson13-3
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
848b19fc
authored
Mar 04, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
526c382c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
10086.txt
23456.py
ert.txt
10086.txt
0 → 100644
View file @
848b19fc
小黑子 1226 8988 900000000 6721212121
金毛 123 345 98765 98
书包 1234567 8 78 9098
蔡徐克 213 3456 878 56
贝二维 244 7676937777 3456 1234567892345
真爱粉 3456 678 7678 345678345674
ikun 23567 56789 345678 34567
里奥希 23456 35678 67677667756787 9899
牛鸟文 23456 12345 234 123412378
电摇小子 12345 23456 6789 8789456
开朗校长 23456 78765 87676 344
\ No newline at end of file
23456.py
0 → 100644
View file @
848b19fc
with
open
(
r'c:\Users\Administrator\Documents\lesson13-3\10086.txt'
,
'r'
,
encoding
=
'utf-8'
)
as
file
:
a
=
file
.
readlines
()
final_wetrt
=
[]
for
i
in
a
:
data
=
i
.
split
()
wetrt
=
0
for
sales
in
data
[
1
:]:
wetrt
=
wetrt
+
int
(
sales
)
result
=
data
[
0
]
+
str
(
wetrt
)
+
'
\n
'
final_wetrt
.
append
(
result
)
with
open
(
r'c:\Users\Administrator\Documents\lesson13-3\ert.txt'
,
'a'
,
encoding
=
'utf-8'
)
as
file
:
file
.
writelines
(
final_wetrt
)
\ No newline at end of file
ert.txt
0 → 100644
View file @
848b19fc
小黑子7621222335
金毛99331
书包1243751
蔡徐克4603
贝二维1242244833822
真爱粉345678357486
ikun460601
里奥希67677667825820
牛鸟文123448413
电摇小子8832046
开朗校长190241
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