for x in range(1,10):
for y in range(0,10):
if x<y:
print str(x)+str(y)
for y in range(0,10):
if x<y:
print str(x)+str(y)
2019-04-03
最赞回答 / qq_慕前端3171692
缩进,缩进,缩进!!!缩进是python最重要的语法,一般采用四个空格或tab键作为标准缩进格式,但两者不得混用,建议采用四个空格缩进作为个人习惯
2019-04-03
最赞回答 / Piang
用del删除d = { 95: 'Adam', 85: 'Lisa', 59: 'Bart'}d[72]='Paul'd[99]='rclym'del d[99]print d
2019-04-03
print [int(x + y + z) for x in '123456789' for y in '0123456789' for z in '1234567890' if x==z]
2019-04-02