如题所述
lines = int(input())
for i in range(0, lines):
print('{} Hello world'.format(i + 1))
如果版本够高, 可以这样: