Python 可以像这样将字符串相乘:
Python 3.4.3 (default, Mar 26 2015, 22:03:40)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> x = 'my new text is this long'
>>> y = '#' * len(x)
>>> y
'########################'
>>>
Golang 能以某种方式做同样的事情吗?
翻阅古今
梦里花落0921
叮当猫咪
相关分类