可以使用的一种可能的文件类型stat(2)是S_IFWHT,也称为 whiteout。它是什么?
我该怎么做:
from tqdm.notebook import tqdm
from matplotlib import pyplot as plt
from IPython import display
import time
import numpy as np
xx = list()
for i in tqdm(range(500)):
xx.append(i * 0.1)
yy = np.sin(xx)
if i % 10 == 0:
display.clear_output(wait=True)
plt.plot(xx, yy)
time.sleep(0.1)
Run Code Online (Sandbox Code Playgroud)
但是tqdm当我更新情节时防止进度条消失?