10月 262020
 
# 空白泛指任何非打印字符,如空格,制表符和换行

# 在字符串中添加制表符\t
print("Python")
print("\tPython")

# 在字符串中添加换行符\n
print("Languages:\nPython\nC\nJavaScript")

# 在同一个字符串中可以同时包含制表符和换行符
print("Languages:\n\tPython\n\tC\n\tJavaScript")
D:\PycharmProjects\pythonProject2\venv\Scripts\python.exe D:/PycharmProjects/pythonProject2/hello2.py
Python
	Python
Languages:
Python
C
JavaScript
Languages:
	Python
	C
	JavaScript

Process finished with exit code 0

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据