import time
import sys

for i in range(100):
    sys.stdout.write(str(i)+'>')
    time.sleep(1)
    sys.stdout.flush()

输出效果

 

python3 a.py
0>1>2>3>4>5>6>7>8>9>10>11>12>13>14>15>16>17>

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2021-06-01
  • 2021-05-19
相关资源
相似解决方案