Commit bad360b3 by BellCodeEditor

save project

parent 62806fe7
Showing with 16 additions and 7 deletions
file=open(r'C:\Users\cc\Desktop\test.txt','w',encoding='utf-8')
file.write('诺')
file.close()
file=open(r'C:\Users\cc\Desktop\test.txt','r',encoding='utf-8')
q=file.read()
print(q)
file.close()
file=open(r'C:\Users\cc\Desktop\test.txt','r',encoding='utf-8')
for i in file:
if "诺" in i:
print("诺依")
\ No newline at end of file
...@@ -10,3 +10,4 @@ for i in a: ...@@ -10,3 +10,4 @@ for i in a:
d="胡#几天后#计日工#发工资"
s=d.split('#')
print(s)
lll="我 们 都 是 中 国 人"
s=lll.split(' ')
print(s)
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