【发布时间】:2021-08-30 06:57:43
【问题描述】:
我已经尝试了各种方法,例如在以下代码中使用 .strip 和 textwrap.dedent:
import animation
import time
@animation.wait('spinner')
def timer_():
time.sleep(2)
print("test")
return
timer_()
我想要的输出是:
test
但是输出是:
\test
动画也以同样的方式缩进
【问题讨论】:
标签: python whitespace indentation