sum = 0
x = 1
n = 1
while True:
sum = sum + x
x = x * 2
if n > 20
break
print sum
x = 1
n = 1
while True:
sum = sum + x
x = x * 2
if n > 20
break
print sum
2019-12-13
score = 60
if socre >= 90:
print 'excellent'
elif score >= 80:
print 'good'
elif score < 60:
print 'faild'
else:
prinit 'passed'
if socre >= 90:
print 'excellent'
elif score >= 80:
print 'good'
elif score < 60:
print 'faild'
else:
prinit 'passed'
2019-12-12
print 45678+0x12fd2
print"learn python in imooc"
print 100<99
print 0xff==255
print"learn python in imooc"
print 100<99
print 0xff==255
2019-12-12
print [int(m+n+m) for m in '123456789' for n in '0123456789']
2019-12-11
a为True,or运算返回a第一个输出hello,python
b为false,or运算返回world,第二个输出hello,world
b为false,or运算返回world,第二个输出hello,world
2019-12-11