Commit 6bdfa02a by BellCodeEditor

save project

parent 5ec53ebb
Showing with 13 additions and 0 deletions
with open(r'c:\Users\Thinkpad\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') as file:
a = file.readlines()
for i in a:
print(i)
\ No newline at end of file
txt = "welcome to the bellcode"
new_txt = txt.split()
print(new_txt)
txt1 = "瑞士警方开始v那就是,iv么司v热水vi,太糊涂侦探"
new_txt = txt1.split(",")
print(new_txt)
\ 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