摘要:
C#获取当前不同网卡对应的iP: public string GetLocalIP() { IPAddress localIp = null; try { IPAddress[] ipArray; ipArray = Dns.GetHostAddresses(Dns.GetHostName()); 阅读全文
posted @ 2020-02-06 13:44
小大大小
阅读(1204)
评论(0)
推荐(0)
摘要:
C#对config.ini文件进行读取和修改: public partial class Patrolcar : Form之后可以加入如下类: #region public class IniFile { public string map_length, map_width, maxnum_con 阅读全文
posted @ 2020-02-06 13:37
小大大小
阅读(2488)
评论(0)
推荐(0)
摘要:
C#String类型转换成Brush类型: using System.Windows.Media; BrushConverter brushConverter = new BrushConverter(); Brush brush = (Brush)brushConverter.ConvertFro 阅读全文
posted @ 2020-02-06 13:29
小大大小
阅读(1035)
评论(0)
推荐(0)
摘要:
创建共享内存python文件: import mmap import contextlib import time with contextlib.closing(mmap.mmap(-1, 100, tagname='SASU', access=mmap.ACCESS_WRITE)) as m: 阅读全文
posted @ 2020-02-06 13:16
小大大小
阅读(6907)
评论(0)
推荐(1)

浙公网安备 33010602011771号