I can't write sideways on Python cmd

Asked 2 years ago, Updated 2 years ago, 118 views

It works well if you run it on the jupyter like that, but if you make .exe with the same code, the print('@', end=') doesn't work I don't get an error and I'm just not doing anything. Why is this happening?

python cmd print

2022-09-21 11:56

1 Answers

https://hashcode.co.kr/questions/5346/%ED%8C%8C%EC%9D%B4%EC%8D%AC-print-%EC%B6%9C%EB%A0%A5-%EC%A7%80%EC%97%B0

Maybe it's because it's only stacked in the output buffer.

print('@', end='', flush=True)

Try running it by adding the flush factor like this.


2022-09-21 11:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.