📜  如何在python代码示例中乘以一个字符串

📅  最后修改于: 2022-03-11 14:45:24.175000             🧑  作者: Mango

代码示例1
#Python 2.x:
#print 'string' * (number of iterations)
print '-' * 3


#Python 3.x:
#print ('string' * (number of iterations))
print('-' * 3)