#!/usr/bin/env python
# -*- coding:utf-8 -*-
nums = [100,22,33]
len(nums)

# E:\python27\python2.exe
# infor = {"name": "laowang", "age": 18}
# infor.keys()
# Out[3]: ['age', 'name']
# infor.get("name")
# Out[4]: 'laowang'
# infor.get("weyrywerwey")
# if "qq" in infor.keys():
#     print("有qq这个键")
#
# infor.values()
# Out[7]: [18, 'laowang']
########################################################
# E:\python35\python35.exe
# infor = {"name": "laowang", "age": 18}
# len(infor)
# Out[3]: 2
# infor.keys()
# Out[4]: dict_keys(['name', 'age'])
# for temp in infor.keys():
#     print(temp)
#
# name
# age
# for temp in infor.values():
#     print(temp)
#
# laowang
# 18
# infor.items()
# Out[7]: dict_items([('name', 'laowang'), ('age', 18)])
# for temp in infor.items():
#     print(temp)
#
# ('name', 'laowang')
# ('age', 18)
# for temp in infor.items():
#     print("key=%s,value=%s" % (temp[0], temp[1]))
#
# key = name, value = laowang
# key = age, value = 18
# a = (11, 22)
# b = a
# b
# Out[12]: (11, 22)
# c, d = a
# c
# Out[14]: 11
# d
# Out[15]: 22
# a
# Out[16]: (11, 22)
# for A, B in infor.items():
#     print("key=%s,value=%s" % (A, B))
#
# key = name, value = laowang
# key = age, value = 18


