Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in posts by emo81 only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
emo81
User Profile
Collapse
Profile Sidebar
Collapse
emo81
Last Activity: Dec 22 '18, 12:19 PM
Joined: Dec 18 '18
Location:
Subscriptions
0
Subscribers
0
Activities
About
Media
Subscribed
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Source
All
emo81 only
Visitor Messages Only
Advanced
Filtered by:
Clear All
new posts
emo81
started a topic
this code replace text in a uni-code file
in
Python
Dec 18 '18, 03:17 AM
this code replace text in a uni-code file
This works, but I'd like to know peoples opinions.
with open ("readme.txt"," r") as file:
fl=file.readlin es()
fl[:] = [s.replace('xxxx ', '.....') for s in fl]
with open("readme.tx t","w") as file:
file.write("".j oin(fl))
thanx
anwar
See more
|
Go to post
No activity results to display
Show More
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕