对字符串进行加与乘
print("w"*6,"\n")
print("w"*6+"h"*2,"\n")
结果为
wwwwww
wwwwwwhh
试了一下,应该不能减除
'w'*3-'w'*2
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
'w'*3-'w'*2
TypeError: unsupported operand type(s) for -: 'str' and 'str'