Python可以繁殖的字符串,像這樣:Golang能像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莫名其妙地做相同呢?
瞭解符文在重要的,很好的答案。 – cerberos