搜索内容

包含标签:repeat 的文章
  • 如何用空格多次重复字符串?

    我想用 n 次传递一个字符串以用空格重复它,我的代码如下所示: def repeating(word, n): return word * n 我希望输出看起来像: hello hello hello 每个……
    喔28 问答 2022年8月14日