Commit 34984fc1 by BellCodeEditor

auto save

parent a8d02629
str='我有1个超大的苹果'
print(str.replace('1','999'))
# 写入同学们的捐赠明细:'兰:12本小'、'小丽:11本'、'李文:9本'、'张伟:16o
new_date=''
with open(r'C:\Users\CHINGHUDOF\Desktop\text.txt','r',encoding='utf-8') as filel:
#filel.read()
for date in filel:
if 'l' in date:
date=date.replace('l','w')
new_date +=date
print(new_date)
with open(r'C:\Users\CHINGHUDOF\Desktop\text.txt','w',encoding='utf-8') as filel:
filel.write(new_date)
\ No newline at end of file
txt='1.2.3.4.5.6.7'
wow=txt.split('.')
print(wow)
with open(r'C:\Users\CHINGHUDOF\Desktop\sales_list.txt','r',encoding='utf-8') as filel:
a=filel.readlines()
for i in a:
www=i.split()
print(www[1:])
\ No newline at end of file
a='sfkhwihfgwufhwkfuwhfwhfwiufhwuiffhuefhregjhikjhyujikoiuyuio9i8u7y7u8i9uji9kjh'
a='sfkhwihfgwufhwkfuwhfwhfwiufhwuiffhuefhregjhikjhyujikoiuyuio9i8u7y7u8i9uji9kjh'
for i in a:
print(i)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment