Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当使用 Tkinter Text 小部件或 ScrolledText 小部件时,如果您按 Enter 换行,如果您使用该小部件中的文本,那么在文本中表示的新行是什么get()?以及如何将其替换为\nor 或<br>.
get()
\n
<br>
谢谢
You get a \n for each new line (including a final \n which is always present).