摘要: 一.ISNULL函数:判断VBS中的变量是否为null值 1 Dim x 2 3 MsgBox IsNull(x) False 4 5 x = null 6 MsgBox IsNull(x) True 7 8 x = "11" 9 MsgBox IsNull(x) False 二.ISEMPTY函数 阅读全文
posted @ 2021-08-03 11:35 王德发的厚礼蟹 阅读(403) 评论(0) 推荐(0)
摘要: 1. 首先需要安装ntplib模块 pip install ntplib 2.windows中获取系统时间及对时 1 # 获取系统日期(修改把/t改为日期字符串) 2 date /t 3 # 获取系统时间(修改把/t改为时间字符串) 4 time /t 3.NTP对时的函数示例代码 1 def nt 阅读全文
posted @ 2021-07-30 11:23 王德发的厚礼蟹 阅读(1456) 评论(0) 推荐(0)
摘要: 1.StringGrid自由调整列宽 在属性的Options里面有一个goColSizing的,改为True即可让用户可调宽度。 2.设置显示列数 StringGrid.colcount = 列数 3.获取单元格内容 StringGrid.cells(a,b) a:列数 b:行数 4.设置默认列宽 阅读全文
posted @ 2021-07-22 17:25 王德发的厚礼蟹 阅读(227) 评论(0) 推荐(0)
摘要: LTrim 返回不带前导(light)空格的字符串副本 用法:LTrim(string) 示例:LTrim(' abc ') = 'abc ' RTrim 返回不带后续(right)空格的字符串副本 用法:RTrim(string) 示例:RTrim(' abc ') = ' abc' Trim 返 阅读全文
posted @ 2021-07-22 16:45 王德发的厚礼蟹 阅读(461) 评论(0) 推荐(0)