import sys, time def print_data(): for i in range(5): sys.stdout.write(str(i) + '\r') time.sleep(1) sys.stdout.flush() if __name__ == '__main__': print_data()
import sys, time def print_data(): for i in range(5): sys.stdout.write(str(i) + '\r') time.sleep(1) sys.stdout.flush() if __name__ == '__main__': print_data()
转载于:https://www.cnblogs.com/LarryGen/p/5713000.html