function TForm1.IsHaveChinese(judgeStr: string; var posInt: integer): boolean; var p: PWideChar; // 要判断的字符 count: integer; // 包含汉字位置 isHave: boolean; ... ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.... ...
1、窗体 1、常用属性 (1)Name属性:用来获取或设置窗体的名称,在应用程序中可通过Name属性来引用窗体。 (2)WindowState属性:用来获取或设置窗体的窗口状态。 取值有三种: Normal (窗体正常显示)、 Minimized(窗体以最小化形式显示)和 Maximized(窗体以 ...
在遇到HTTPS 接口时,如果POSTMAN可以随意访问,但是程序调试会遇到服务器拒绝的情况时,可以考虑是否为以上问题 ...
链式写法有很多优点:连贯、语意集中、简洁、一气呵成、可读性强。比如要把 3.1415926 中的 59 提取为一个整数:Pi.ToString().Substring(5,2).ToInteger() 轻车熟路的感觉,让人觉得,哇!好帅的写法,牛x。 以前以为只有 TJSONBuilder 才支持链 ...
1.下载pywinauto 链接:http://pywinauto.github.io/ 2.将安装包放到D:python36\script,进入pywinauto目录,按shift+右键,进入命令窗口,执行pip install pywinauto,然后等待安装结束。 ...
public class Net { [DllImport("wininet")] private extern static bool InternetGetConnectedState(out int connectionDescription, int reservedValue); /// ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System. ...
下载pywin32 链接:sourceforge.net/projects/pywin32/files/ 1.找到一个pywin32的文件夹 2.下一级目录里面有多个文件夹。 3.打开Build222文件夹,里面没有任何安装包供下载。 4.再打开Build221文件夹,可以看到若干安装包。 5.根据 ...
分类:
Windows程序 时间:
2018-06-16 11:56:01
阅读次数:
2054
public partial class Form1 : Form { #region u盘属性 public const int WM_DEVICECHANGE = 0x219;//U盘插入后,OS的底层会自动检测到,然后向应用程序发送“硬件设备状态改变“的消息 public const int ... ...
该错误其实是Django的端口号被占用,解决步骤如下:1.找出占用的端口号:输入netstat -ano|findstr 8000 2.找出端口号对应的服务器:tasklist if indstr 3144 i 3.终止端口号对应的进程:输入taskkill /pid 3144 4.在任务管理器中关 ...
在管理后台程序时总会有以外情况导致程序卡死成为未响应状态。 下面提供一个结合Windows 执行计划配合 批处理的解决方案来预防程序未响应 将以上部分打包为一个批处理文件,然后放在执行计划中,并添加参数>log.txt 或者>>log.txt 来进行日志记录 希望有更好的管理脚本能分享一起学习 ...
Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k num ...
为什么WIN7第一次开机冷启动QQ未响应?WIN10就没事? http://bbs.wuyou.net/forum.php?mod=viewthread&tid=409516&extra=不知道是什么原因,不知道是什么冲突了。试过删除所有的聊天记录,清空账号,都没用。我用的QQ轻聊版,现在QQ轻聊版 ...
using System; using System.Collections; namespace YieldDemo { class Program { public static IEnumerable Power(int num, int exponent) { int counter = 0... ...
首先确保机器已经安装好Zookeeper,Zookeeper安装参考 Windows单机配置Zookeeper环境 然后确保Zookeeper是正常启动状态 下载Kafka http://kafka.apache.org/downloads.html 下载二进制包 下载后解压缩,我这里解压缩到了 D ...
cd命令: D: 进入D盘C: 进入C盘cd myc --可以进入到名字为myc的目录(必须C盘存在这个文件夹)cd.. 可以返回上一层目录cd\ 返回到根目录cd d:\myc 进入D盘的名字为myc的目录cd /? 查看cd命令的具体用法。 以上来自链接:https://www.jianshu. ...