Files
Python_CookBook_repo/5.文件与IO/3.以不同的分隔符或行结尾符完成打印.py
2025-09-10 16:12:45 +08:00

9 lines
181 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

if __name__ == "__main__":
# 这是普通的打印
print(1,2,3)
# 想要使用分隔符来隔开数字可以在sep字段设置分隔符
print(1,2,3, sep="..")