python運行時強制刷新緩衝區

需求:打印一顆」*」休息1spython 代碼以下:web #!/usr/bin/python #coding=utf-8 ''' 暫停1s輸出 ''' import time def printStar(n): for i in range(n): print " * ", time.sleep(1) if _
相關文章
相關標籤/搜索