Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson12-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
2270d28a
authored
Jun 27, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
6b003442
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
diy.py
diy.py
View file @
2270d28a
...
...
@@ -4,14 +4,14 @@
#file_1.write('张伟:16本\n')
#file_1.close()
now_dand
=
""
w
hile
open
(
r'F:\TNTUIT3346\gzj.txt'
,
'w
'
,
encoding
=
'utf-8'
)
as
file_1
:
w
ith
open
(
r'F:\TNTUIT3346\gzj.txt'
,
'r
'
,
encoding
=
'utf-8'
)
as
file_1
:
for
dand
in
file_1
:
if
'gyfdtcdt123456789999999'
in
dand
:
dand
=
dand
.
write
(
'gyfdtcdt123456789999999'
,
'gyfdtcdt12343456789999979'
)
now_dand
+=
dand
print
(
"在"
)
print
(
dand
)
with
open
(
r'F:\TNTUIT3346\gzj.txt'
,
'w'
,
encoding
=
'utf-8'
)
as
file_1
:
file_1
.
write
(
now_dand
)
\ 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