fork download
  1. # your code goes here
  2. # your code goes here
  3. name=input("姓名")
  4. sex=input("性别")
  5. age=input("年龄")
  6. dic={"name":name,"sex":sex,"age":age}
  7. print('——————————————————————————————')
  8. print('我的姓名{},今年{}岁,性别{},喜欢敲代码'.format(dic.get('name'),dic.get('age'),dic.get('sex')))
  9. high=input("身高")
  10. call=input("联系方式")
  11. dic.update({"high":high,"call":call})
  12. print(dic)
  13. dic.popitem()
  14. print(dic)
Success #stdin #stdout 0.02s 9192KB
stdin
王
女
16
169
13105618611
stdout
姓名性别年龄——————————————————————————————
我的姓名王,今年16岁,性别女,喜欢敲代码
身高联系方式{'name': '王', 'sex': '女', 'age': '16', 'high': '169', 'call': '13105618611'}
{'name': '王', 'sex': '女', 'age': '16', 'high': '169'}