Output Question!
Now I use print(" ",end="")
but I think it's very inconvenient.
I'm a lazy guy~
Thank you !
Moderators: UncleTimmy, mjpieters
Enjoying the challenge? Need a hint?sys.stdout = MyClass()
sys.stdout = MyClass()
Memory wrote:sys.stdout = MyClass()
Oh,I see.But how can a class do such things?
Why can you assign your class to the stdout?
And doing that makes the original stdout invalid?
Why can you assign your class to the stdout?
And doing that makes the original stdout invalid?
Users browsing this forum: No registered users and 3 guests