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
6b08fa05
authored
Jun 18, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
d6c1f8b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
146 additions
and
5 deletions
diy.py
sales_list.txt
diy.py
View file @
6b08fa05
with
open
(
r'c:\Users\23636\Documents\lesson13-
1
\sales_list.txt'
,
"r"
,
encoding
=
'utf-8'
)
as
file1
:
with
open
(
r'c:\Users\23636\Documents\lesson13-
5
\sales_list.txt'
,
"r"
,
encoding
=
'utf-8'
)
as
file1
:
a
=
file1
.
readlines
()
d_da
=
[]
for
i
in
a
:
...
...
@@ -7,6 +7,6 @@ for i in a:
for
abc
in
data
[
1
:]:
sum
=
sum
+
int
(
abc
)
g
=
data
[
0
]
+
str
(
sum
)
+
'
\n
'
d_da
.
append
(
g
)
with
open
(
r'c:\Users\23636\Documents\lesson13-
1
\sales_list.txt'
,
"a"
,
encoding
=
'utf-8'
)
as
file1
:
d_da
.
append
(
g
)
with
open
(
r'c:\Users\23636\Documents\lesson13-
5
\sales_list.txt'
,
"a"
,
encoding
=
'utf-8'
)
as
file1
:
file1
.
writelines
(
d_da
)
sales_list.txt
View file @
6b08fa05
...
...
@@ -10,4 +10,146 @@
刘若若 11 11 13 11 20 15 13 29 24
刘阳 11 15 22 11 23 26 22 15 17 52 12
王胜男 27 15 15 26 13 12 15
王娇 12 11 12 12 15 35 23 11
\ No newline at end of file
王娇 12 11 12 12 15 35 23 11悟空12
悟空27
悟空38
悟空50
悟空61
悟空73
悟空86
悟空107
悟空134
悟空146
悟空161
悟空191
悟空213
悟空239
悟空254
悟空266
悟空287
悟空310
悟空337
悟空348
诺依21
诺依50
诺依65
诺依86
诺依107
诺依128
诺依157
诺依187
诺依199
诺依212
诺依224
诺依236
诺依260
诺依312
诺依339
诺依365
诺依380
小贝29
小贝40
小贝51
小贝66
小贝79
小贝94
小贝107
小贝118
小贝129
小贝158
小贝171
小贝182
李丽13
李丽28
李丽48
李丽63
李丽78
李丽89
李丽106
李丽126
李丽146
李丽157
李丽169
李丽181
李丽201
宋扬11
宋扬22
宋扬33
宋扬44
宋扬59
宋扬76
宋扬87
宋扬107
王明30
王明57
王明83
王明107
王明136
王明148
王明163
王明174
王明196
王明222
王明245
李强12
李强24
李强35
李强50
李强61
李强74
李强99
李强125
李强136
李强149
李强164
孙小白25
孙小白51
孙小白63
孙小白78
孙小白105
孙小白135
孙小白183
孙小白222
苏琪15
苏琪26
苏琪41
苏琪56
苏琪86
苏琪99
苏琪126
苏琪137
刘若若11
刘若若22
刘若若35
刘若若46
刘若若66
刘若若81
刘若若94
刘若若123
刘若若147
刘阳11
刘阳26
刘阳48
刘阳59
刘阳82
刘阳108
刘阳130
刘阳145
刘阳162
刘阳214
刘阳226
王胜男27
王胜男42
王胜男57
王胜男83
王胜男96
王胜男108
王胜男123
王娇12
王娇23
王娇35
王娇47
王娇62
王娇97
王娇120
王娇131
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