Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson12-2
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
3d1637ed
authored
Dec 04, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
0b8d474e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
123.txt
store.py
123.txt
View file @
3d1637ed
gr捐赠:g本
erg捐赠:reg本
rg捐赠:r本
捐赠:gre本
捐赠:t本
f捐赠:ef本
sf捐赠:df本
sdf捐赠:df本
捐赠:w本
fwe捐赠:fe本
f捐赠:fe本
f捐赠:fe本
f捐赠:f本
df捐赠:df本
ds捐赠:f本
sdfd捐赠:f本
df捐赠:sf本
df捐赠:sdf本
df捐赠:df本
d捐赠:f本
df捐赠:ds本
df捐赠:df本
sf捐赠:d本
store.py
View file @
3d1637ed
...
@@ -5,11 +5,27 @@ except:
...
@@ -5,11 +5,27 @@ except:
file_
=
open
(
r"123.txt"
,
'w'
,
encoding
=
'utf-8'
)
file_
=
open
(
r"123.txt"
,
'w'
,
encoding
=
'utf-8'
)
else
:
else
:
file_
=
open
(
r"123.txt"
,
'a'
,
encoding
=
'utf-8'
)
file_
=
open
(
r"123.txt"
,
'a'
,
encoding
=
'utf-8'
)
print
(
'-'
*
30
)
print
(
'-'
*
30
)
while
True
:
while
True
:
name
=
str
(
input
(
'name:'
))
name
=
str
(
input
(
'name:'
))
if
name
==
'close'
:
if
name
==
'close'
:
break
break
if
name
==
'read'
:
print
(
'*'
*
30
)
file_
.
close
()
file_temp
=
open
(
r"123.txt"
,
'r'
,
encoding
=
'utf-8'
)
for
i
in
file_temp
:
print
(
i
)
file_temp
.
close
()
try
:
file_
=
open
(
r"123.txt"
,
'a'
,
encoding
=
'utf-8'
)
except
:
file_
=
open
(
r"123.txt"
,
'w'
,
encoding
=
'utf-8'
)
else
:
file_
=
open
(
r"123.txt"
,
'a'
,
encoding
=
'utf-8'
)
print
(
'-'
*
30
)
continue
num
=
str
(
input
(
'num:'
))
num
=
str
(
input
(
'num:'
))
print
(
'-'
*
30
)
print
(
'-'
*
30
)
file_
.
write
(
name
+
'捐赠:'
+
num
+
'本
\n
'
)
file_
.
write
(
name
+
'捐赠:'
+
num
+
'本
\n
'
)
...
...
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