在 Perl 中它就像 print "A"x10 一样简单
print "A"x10
在 python 中呢?
请您参考如下方法:
python3+之前:
print "A" * 10
在 python 3+ 中:
print("A"*10)