给我用python循环打印*,每隔1秒,累计100个换行
您可以使用以下代码来实现:
import time
for i in range(100):
print("*")
time.sleep(1)
if i % 100 == 0:
print("\n" * 100)
这个代码会在每个星号之间停顿1秒钟,同时每打印100个星号就会累计100个换行符。
原文地址: https://www.cveoy.top/t/topic/rXZ 著作权归作者所有。请勿转载和采集!