摘要: 循环1000000000次, string a = "100"; string b = "200"; for (int i = 0; i < 1000000000; i++) { if(string.IsNullOrEmpty(a)) { continue; } if (string.IsNullO 阅读全文
posted @ 2023-03-02 20:35 素心如何天上月 阅读(32) 评论(0) 推荐(0) 编辑
摘要: import urllib3urllib3.disable_warnings() html = requests.get(url,proxies = {'http':'192.168.1.3:8888','https':'192.168.1.3:8888'},verify=False) 阅读全文
posted @ 2022-11-08 22:15 素心如何天上月 阅读(49) 评论(0) 推荐(0) 编辑
摘要: [em]e100[/em]|[bq14][em]e101[/em]|[bq1][em]e102[/em]|[bq2][em]e103[/em]|[bq3][em]e104[/em]|[bq4][em]e106[/em]|[bq6][em]e107[/em]|[bq7][em]e108[/em]|[b 阅读全文
posted @ 2022-10-30 19:37 素心如何天上月 阅读(2125) 评论(0) 推荐(0) 编辑
摘要: Traceback (most recent call last): File "/home/py_virtual_env/q16/bin/pip3", line 5, in <module> from pip._internal.cli.main import main File "/home/p 阅读全文
posted @ 2022-10-08 05:10 素心如何天上月 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 折腾了将近8个小时,网上找遍了,才找到这个方法,记录备用,方法纯于照搬 提示: You might want to run 'apt --fix-broken install' to correct these.The following packages have unmet dependenci 阅读全文
posted @ 2022-10-04 19:15 素心如何天上月 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1.开启线程 .... using System.Threading; //创建无参的线程 Thread thread1 = new Thread(new ThreadStart(Thread1)); //Thread1是你新线程的函数 //调用Start方法执行线程 thread1.Start() 阅读全文
posted @ 2022-09-26 19:01 素心如何天上月 阅读(1173) 评论(0) 推荐(0) 编辑
摘要: if(e.KeyChar!=8&&!Char.IsDigit(e.KeyChar)) { e.Handled = true; } //判断按键是不是要输入的类型。 if(((int)e.KeyChar<48||(int)e.KeyChar>57)&&(int)e.KeyChar!=8&&(int)e 阅读全文
posted @ 2022-09-26 06:00 素心如何天上月 阅读(62) 评论(0) 推荐(0) 编辑
摘要: System.Diagnostics.Process.Start("http://www.xxx.com/") 阅读全文
posted @ 2022-09-25 00:53 素心如何天上月 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 1.从index截取到字符串结束: string.Substring(index) 2.从index截取length长度的字符串: string.Substring(index,length) 3.查找字符串最先出现的index: //如果没找到,会返回-1 int index =string.In 阅读全文
posted @ 2022-09-25 00:30 素心如何天上月 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 调用方法就不再说了,最近调用一个朋友给的易语言的dll出现了奇怪的情况,第一次调用某个接口正常,第二次就闪退,花了很长时间才解决. 按: 调用的返回值的时候不能直接调用,要用指针调用 例子: [DllImport("my.dll",CharSet = CharSet.Ansi,EntryPoint= 阅读全文
posted @ 2022-09-24 21:12 素心如何天上月 阅读(577) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示