Commit f793ec4e by BellCodeEditor

save project

parent 6cfea492
Showing with 12 additions and 3 deletions
w={} w={}
w['apple']=90 w['apple']=90
w['pear']=70
print(w) print(w)
if 'pear' in w: if 'pear' in w:
print(w{pear}) print(w['pear'])
\ No newline at end of file else:
print("不在")
\ No newline at end of file
a={"依依":321,"刘文浩":0.00000000000001,"同浩泽":100000000}
q=input("what do you want:")
if q in a:
print("你买的"+q+"是"+str(a[q])+"元~")
else:
print("滚~")
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