我一直无法找到任何这方面的信息。
我想知道如何使用可以打印出20个空白行的功能(例如clear_screen
)。
我的程序的最后一行应该是致电clear_screen
。如何在python中打印空行?
我的代码的启动是:
def new_line():
print
def three_lines():
new_line()
new_line()
new_line()
def nine_lines():
three_lines()
three_lines()
three_lines()
print " "
nine_lines()
print " "
打印功能的工作原理,但不能与clear_screen()
,这就是我所需要的工作。
如果任何人可以帮助我或有任何建议,这将是很好,谢谢。
使用诅咒一些速度统计 - Python库 – dawg 2013-03-04 06:33:26
检查HTTP的一部分:// stackoverflow.com/questions/4810537/how-to-clear-the-screen-in-python – avasal 2013-03-04 06:33:38
@drewk:在Windows上不可用。 – 2013-03-04 06:33:55