diff --git a/source/c05/p03_print_with_different_separator_or_line_ending.rst b/source/c05/p03_print_with_different_separator_or_line_ending.rst index e5290787..292ac207 100644 --- a/source/c05/p03_print_with_different_separator_or_line_ending.rst +++ b/source/c05/p03_print_with_different_separator_or_line_ending.rst @@ -42,12 +42,12 @@ ---------- 讨论 ---------- -当你想使用非空格分隔符来输出数据的时候,给 ``print()`` 函数传递一个 ``seq`` 参数是最简单的方案。 +当你想使用非空格分隔符来输出数据的时候,给 ``print()`` 函数传递一个 ``sep`` 参数是最简单的方案。 有时候你会看到一些程序员会使用 ``str.join()`` 来完成同样的事情。比如: .. code-block:: python - >>> print(','.join('ACME','50','91.5')) + >>> print(','.join(('ACME','50','91.5'))) ACME,50,91.5 >>>