print(数量 * '字符或字符串')

#输出空格
print(10 * ' ')
#重复输出字符
print(10 * 'a')
#重复输出字符串
print(10 * 'abc')

 

相关文章: