
help()
help(list)

# 字符串
print 'Hello\'World'
print "Hello\"\\World"
print "Hello\
World"
print '''"Hello"
'World'
'''
print r"\n"
print "Hello" "World"

# 变量
a = 12
print a
a = 12; print a

# 注释
# 注释1
print "Comment" # 注释2

# 四则运算(+ - * / %)
print 2 + 2
print 2 - 2
print 2 * 2
print 2 / 2
print 2 % 2
print type(2), type(1.5), type(6 / 4), type(6 / 4.0)

# 取整除(//)
print 5 // 4

# 幂运算(**)
5 ** 3

# 赋值运算(=)
width = 20

# 比较运算(> >= < <= == !=)

# 逻辑运算(and or not)
if (1 == 1 and 1 != 2) :
    print "True"

# 位运算(<< >> & | ^)
	
# int和float混合运算 > float
4 * 2.5

# 缩进
i = 1
if (i == 1) :
    print i
else :
    print 0