5-8作业如下,可否?
for x in ['0','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:
continue
print x + y
有疑问:
for里面的数字作了字符串处理,字符串的数字作比较后合成,这思路可否?
for x in ['0','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:
continue
print x + y
有疑问:
for里面的数字作了字符串处理,字符串的数字作比较后合成,这思路可否?
2019-10-18
举报