Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / lesson7_1

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • lesson7_1
  • a.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · ee610afb
    BellCodeEditor committed 2 years ago
    ee610afb
a.py 386 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# list_xx=['x',3,'xx',20,'xxx',42]
# dict_xx = {'x':3,'xx':20,'xxx':42}
# list_xx[3]=40
# print(list_xx)
# dict_xx['xx']=40
# print(dict_xx)
# list=[]
# dict={}
# dict['x']='xx'
# print(dict['x']='xx')
x={'x':1,'xx':2,'xxx':3}

k=input('你要什么')
if k in x:
    print('叮~你的'+k+'需要支付'+str(x[k])+'元~')
else:
    print('没有你要的东西,滚!')