a = 'abc, 123, abc, 123, abc'
b = a.replace('abc','')
print(b)
#2018-02-13 10:53:46 February Tuesday the 07 week, the 044 day SZ SSMR
#使用tqdm进行进度条显示
from tqdm import tqdm
from time import sleep
for i in tqdm(range(10)):
sleep(0.5)
0%| | 0/10 [00:00<?, ?it/s]
10%|█ | 1/10 [00:00<00:04, 2.00it/s]
20%|██ | 2/10 [00:01<00:04, 2.00it/s]
30%|███ | 3/10 [00:01<00:03, 2.00it/s]
40%|████ | 4/10 [00:02<00:03, 2.00it/s]
50%|█████ | 5/10 [00:02<00:02, 2.00it/s]
60%|██████ | 6/10 [00:03<00:02, 2.00it/s]
70%|███████ | 7/10 [00:03<00:01, 2.00it/s]
80%|████████ | 8/10 [00:04<00:01, 2.00it/s]
90%|█████████ | 9/10 [00:04<00:00, 2.00it/s]
100%|██████████| 10/10 [00:05<00:00, 2.00it/s]
[Finished in 6.2s]
#进度条方法:
#2018-02-13 10:53:42 February Tuesday the 07 week, the 044 day SZ SSMR
import time
N = 10
for i in range(N)
最全的Python进度条展示程序方案
最新推荐文章于 2023-11-07 16:46:02 发布