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
6ed03e34
authored
Jul 27, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
2ae32fbd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
12 deletions
diy.py
djajf.txt
fhsihg.txt
hhu.py
score.txt
diy.py
View file @
6ed03e34
with
open
(
r'C:\Users\Administrator\Destop\sales_list.txt'
,
'r'
,
encoding
=
'gbk'
)
as
file1
:
with
open
(
r'C:\Users\Administrator\Destop\sales_list.txt'
,
'r'
,
encoding
=
'utf-8'
)
as
file1
:
a
=
fill1
.
readlines
()
a
=
file
.
readlines
()
for
i
in
a
:
for
i
in
a
:
data
=
i
.
split
()
file
.
writelines
(
a
)
sum
=
0
\ No newline at end of file
for
sales
in
data
[
1
:]:
sum
=
sum
+
int
(
sales
)
result
=
data
[
0
]
+
str
(
sum
)
+
'/n'
final_sum
.
append
(
result
)
with
open
(
r'C:\Users\Administrator\Destop\sales_list.txt'
,
'r'
,
encoding
=
'gbk'
)
as
file1
:
file
.
writelines
(
result
)
\ No newline at end of file
djajf.txt
0 → 100644
View file @
6ed03e34
锦瑟
[唐]李商隐
锦瑟无端五十弦,
一弦一柱思华年。
庄生晓梦迷蝴蝶,
望帝春心托杜鹃。
沧海月明珠有泪,
蓝田日暖玉生烟。
此情可待成追忆?
只是当时已惘然。
\ No newline at end of file
fhsihg.txt
0 → 100644
View file @
6ed03e34
锦瑟
[唐]李商隐
锦瑟无端五十弦,
一弦一柱思华年。
庄生晓梦迷蝴蝶,
望帝春心托杜鹃。
沧海月明珠有泪,
_____________
_____________
只是当时已惘然。
\ No newline at end of file
hhu.py
0 → 100644
View file @
6ed03e34
with
open
(
r'C:\Users\Administrator\Destop\sales_list.txt'
,
'a'
,
encoding
=
'utf-8'
)
as
file1
:
b
=
djajf
.
txt
file
.
wright
(
a
)
\ No newline at end of file
score.txt
0 → 100644
View file @
6ed03e34
罗恩 23 35 44
哈利 60 77 68 88 90
赫敏 97 99 89 91 95 90
马尔福 100 85 90
\ 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