My string list is ['I',"'m using",'.\n\nI should',' explain',' that']
.
I run this command in my Jupyter-lab notebook(Version 4.3.4):
for c in string:
print(c, end = '',flush = True)
Output is:
I'm using.
explain that
You can see "\n" is black marked. But python3 compiler (Version 3.10.12) return the right output. When I use a different Jupyter-lab kernel it also works well.
I think this might be due to Jupyter-lab. So how to fix it and get the same output? Thanks!
I view some document about jupyter-lab. I am sure that there no typos.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744993796a4605063.html
评论列表(0条)