Commit 3c493a1f by BellCodeEditor

save project

parent 8b1dd071
Showing with 19 additions and 12 deletions
list_hero={'猴三'10}
list_hero['猴三']=100
print(list_hero)
print(list_hero['猴三'])
list_hero['雨果']=100
print(list_hero)
for m in range(1,10):
for n in range(1,10):
print(m,"*",n,"=",(m*n),sep=" ",end=" ")
print()
for m in range(1,10):
for n in range(1,m+1):
print(m,"*",n,"=",m*n,sep=" ",end=" ")
print()
\ No newline at end of file
file=open(r'C:\Users\makcoo\Desktop\test.txt','w',encoding='utf-8')
file.write('f')
file.close()
file=open(r'C:\Users\makcoo\Desktop\test.txt','r',encoding='utf-8')
p=file.read()
print(p)
file.close()
\ 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