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
已采纳回答 / 慕田峪1089631
前面两位OX意味着该数是十六进制,F相当于15(十六进制转换有16进制每一位上可以是从小到大为0、1、2、3、4、5、6、7、8、9、A、B、C、D、E、F16个大小不同的数,即逢16进1,其中用A,B,C,D,E,F(字母使用大写)这六个字母来分别表示10,11,12,13,14,15),所以OXFF换算过来就是15*16^1+15*16^0=255.
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