当前位置:  首页>> 技术小册>> Python合辑3-字符串用法深度总结

重复

字符串可以用 * 符号重复。例如:

  1. print("Ha" * 3)
  2. Output:
  3. HaHaHa

该分类下的相关小册推荐: