i'm trying pycharm and idle at the same time, and found a strange situation
in pycharm:
print("1 hello") print("2 hell\n o") [color=#E74C3C]print("3 hell\r xxx") print("4 hell\rxxx") print("5 hell\b o")[/color] print("6 hell\to")the result
in pycharm:
Output:1 hello
2 hell
o
xxx
xxx
5 hel o
6 hell o
in idle:Output:1 hello
2 hell
o
3 hell
xxx
4 hell
xxx
5 hell o
6 hell o
why are the difference in line 3, 4 & 5? 


Larz60+ write Jan-13-2021, 03:33 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags on future posts
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use bbcode tags on future posts