Commit ec72837e by BellCodeEditor

save project

parent 5cdc10e4
Showing with 11 additions and 3 deletions
file=open(r'c:\Users\cc\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8') file=open(r'c:\Users\cc\Documents\lesson13-1\sales_list.txt','r',encoding='utf-8')
a=file.readlines() a=file.readlines()
print(a) #print(a)
file.close() #file.close()
\ No newline at end of file
for i in a:
data=i.split()
print(data[1:])
\ No newline at end of file
lll="我 们 都 是 中 国 人"
s=lll.split(' ')
print(s)
\ 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