home
changes
contents
help
options
PythonRecipe
024:文字列を反復する
last edited
4 years
ago by
seko
**024:文字列を反復する**
文字列を反復した文字列を作るには、*演算子を使います。
>>> a='apple'*5 >>> a 'appleappleappleappleapple'