//取整除 - 返回商的整数部分
c //= a 等效于 c = c // a
逻辑运算:and, or, not
成员运算:in, not in
身份运算:is, not is
for index in range(len(list)):
for i, j in enumerate(list):
print i,j #i is index and j is value
!/usr/bin/python
-- coding: UTF-8 --
import random
s = int(random.uniform(1,10))
m = int(input('输入整数:'))
while m != s:
if m > s:
print "大了"
else:
print "小了"
m = int(input('输入整数:'))
else : #else是指在非break中断后执行
print "猜中了"