Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson11_3
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
4e6a0e18
authored
Jun 23, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
b9bc176e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
p.py
p.py
View file @
4e6a0e18
new_data
=
" "
with
open
(
r"C:\Users\Administrator\Desktop\Google Chrome.lnk"
,
"w"
,
encoding
=
"uft-8"
)
as
file
:
tl
=
file
.
read
()
for
i
in
t1
:
if
i
==
"想想想想"
:
tl
.
replace
(
"想想想想"
,
"xxxxx"
)
file
.
write
(
new
-
data
)
print
\ No newline at end of file
t1
=
file
.
read
()
for
i
in
t1
:
if
i
==
"想想想想"
:
i
.
replace
(
"想想想想"
,
"xxxxx"
)
new_data
+=
iwith
with
open
(
r"C:\Users\Administrator\Desktop\Google Chrome.lnk"
,
"w"
,
encoding
=
"uft-8"
)
as
file1
:
file1
.
write
(
new_data
)
\ 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