Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson13-1
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
b6f8c189
authored
Mar 18, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
81de1529
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
diy.py
sales_list.txt
diy.py
View file @
b6f8c189
...
...
@@ -10,5 +10,5 @@ with open(r'c:\Users\学生\Documents\lesson13-1\sales_list.txt','r',encoding='u
ben
=
data
[
0
]
+
str
(
sum
)
+
'
\n
'
#print(ben)
abcd
.
append
(
ben
)
with
open
(
r'c:\Users\学生\Documents\lesson13-1\sales_list.txt'
,
'w'
,
encoding
=
'utf-8'
)
as
file
:
file
.
writelines
(
abcd
)
\ No newline at end of file
with
open
(
r'c:\Users\学生\Documents\lesson13-1\sales_list.txt'
,
'w'
,
encoding
=
'utf-8'
)
as
file1
:
file1
.
writelines
(
abcd
)
\ No newline at end of file
sales_list.txt
View file @
b6f8c189
悟空348诺依380小贝182李丽201宋扬107王明245李强164孙小白222苏琪137刘若若147刘阳226王胜男123王娇1310000
悟空348诺依380小贝182李丽201宋扬107王明245李强164孙小白222苏琪137刘若若147刘阳226王胜男123王娇1310000
00
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