ProgressBarForm public partial class ProgressBarForm : Form { private Panel panel1 = new System.Windows.Forms.Panel(); private ProgressBar progressBar1 = new System.Windows.Forms.ProgressBar(); public ProgressBarForm() { InitializeComponent(); Initia…
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading; using System.Windows.Forms; namespace jmyd.form { public partial class…
今天写练习爬虫感觉很需要个进度条,就随手用函数实现了一个,到了晚上突然感觉到这个东西应该单独写出来以后肯定用用得着. 代码也很简单,我就不细讲了,直接上代码了. 测试代码: instance.py import bar import time bar = bar.ProgressBar(50,0,2) for i in range(50): bar.move() # if i == 15: # bar.reset_pram(30,count=100,width=3) bar.bar_run()…