print [int(str(a) + str(b) + str(c)) for a in range(1,10) for b in range(0,10) for c in range(0,10) if a == c]
2019-06-20
for x in [1,2,3,4,5,6,7,8,9]:
for y in [0,1,2,3,4,5,6,7,8,9]:
if x<y:
print 10*x+y
else:continue
for y in [0,1,2,3,4,5,6,7,8,9]:
if x<y:
print 10*x+y
else:continue
2019-06-20
L = [95.5,85,59,""]
print L[0]
print L[1]
print L[2]
print L[3]
print L[0]
print L[1]
print L[2]
print L[3]
2019-06-20
sum = 0
x = 1
n = 1
while True:
sum += x
x *= 2
n += 1
if n > 20:
break
print sum
x = 1
n = 1
while True:
sum += x
x *= 2
n += 1
if n > 20:
break
print sum
2019-06-19
L = ['Adam', 'Lisa', 'Bart']
A=L[0]
L[0]=L[2]
L[2]=A
print L
A=L[0]
L[0]=L[2]
L[2]=A
print L
2019-06-19
# -*- coding: utf-8 -*-
score = 75
if score >= 60:
print '''恭喜你'''
print 'passed'
score = 75
if score >= 60:
print '''恭喜你'''
print 'passed'
2019-06-19