C# 爬虫
//PS 需要引用HtmlAgilityPack.dll 文件,可自行在网上下载 public partial class GrabInterface : Form { public int number = 1; public GrabInterface() { InitializeComponent(); this.Load += GrabInterface_Load; } //定时器 System.Timers.Timer myTimer; //定义委托,防止两线程之间控件赋值冲突 public delegate void Action<in T>(T obj); public void ActionRead(int t) { this.lbl_ok.Text = "正在读取中,请稍后..."; this.btn_sure.Enabled = false; } public void ActionFinall(int t) { this.lbl_ok.Text = "读取完毕"; this.btn_sure.Enabled = false; } public static bool result = true;//设置定时器点击按钮时执行,避免重复执行定时器导致时间混乱 private void btn_sure_Click(object sender, EventArgs