print ([int('%s%s%s'%(x,y,z)) for x in range(0,10) for y in range(0,10) for z in range(0,10) if x == z and x != 0])
2017-02-21
print 'hello,python'
print 'hello','python'
print "what's your name"
print '''I'm "lh"'''
print 'hello','python'
print "what's your name"
print '''I'm "lh"'''
2017-02-21
print 'Adam: 95'
print 'Lisa: 85'
print 'Bart: 59'
print 'Lisa: 85'
print 'Bart: 59'
2017-02-21
L = range(1,101)
Y = []
for x in L:
Y.append(x*x)
print sum(Y)
Y = []
for x in L:
Y.append(x*x)
print sum(Y)
2017-02-21
x1 = 1
d = 3
n = 100
x100 = x1 + (n-1)*d
s = (x1+x100)*n/2
print s
d = 3
n = 100
x100 = x1 + (n-1)*d
s = (x1+x100)*n/2
print s
2017-02-20
#coding=utf-8
L = [100,95.5, 85, 59] #不用猜了,100分是我,快上车,没时间解释了……
print L[-1]
print L[-2]
print L[-3]
print L[-4]
L = [100,95.5, 85, 59] #不用猜了,100分是我,快上车,没时间解释了……
print L[-1]
print L[-2]
print L[-3]
print L[-4]
2017-02-20