Commit 85297646 by BellCodeEditor

save project

parent ea86286e
Showing with 7 additions and 0 deletions
dict={'1':1,'2':2,'3':3,'4':4,'5':5,'6':6,'7':7,'8':8,'9':9,'10':10}
i=input('你要买什么?')
if i in dict:
print('你要的'+i+'是'+str(dict[i])+'元')
else:
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