我如何命令行是正确的?
How do I order lines to be correct?
问题是按顺序排列行并使用正确的缩进。我什么也写不出来,只需要安排一下。问题在图片中。我的回答有什么问题capture
试试这个:
for i in range(1,6):
if i == 1:
print(i, 'little bear')
else:
print(i, 'little bears')
print('Wondering what to do')
print('Along came another')
print('Then there were', i+1, '!')
问题是按顺序排列行并使用正确的缩进。我什么也写不出来,只需要安排一下。问题在图片中。我的回答有什么问题capture
试试这个:
for i in range(1,6):
if i == 1:
print(i, 'little bear')
else:
print(i, 'little bears')
print('Wondering what to do')
print('Along came another')
print('Then there were', i+1, '!')