摘要:同步调用示例(委托是一个类型安全的,面向对象的指针) using System; using System.Threading; namespace Demo { public delegate int Operate(int x, int y); public class DelegateAsync { static int Add(int a, i...
阅读全文
摘要:https://liwei2.com/2015/11/27/378.html关于如何提取证书,请参阅:https://www.zhihu.com/question/26917038http://www.appinn.com/ 小众软件,不错的站点. 关于如何拉黑证书,代码如下:
阅读全文
摘要:1.枚举项和数值,字符串如何互相转换?2.结构和byte[]数组间如何互相转换? 这在通讯上普遍使用!3.位域在工控上DIO控制普遍使用,如何借鉴.OK,上代码!
阅读全文
摘要:using System; using System.Security.Principal; using System.Security.Permissions; namespace Demo { class MainClass { public static void Invoke (Action action) { ...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.InteropServices; namespace Interop { class Program ...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Runtime.InteropServices; using System.Data; using System.Data.Common; ...
阅读全文
摘要:1 import wx 2 class Form(wx.Frame): 3 def __init__( self, parent, id, title ): 4 wx.Frame.__init__(self,parent,id,title,wx.DefaultPosition,wx.Size(300, 250)) 5 self....
阅读全文
摘要:import wx class Form(wx.Frame): def __init__(self,parent,ID,title): wx.Frame.__init__(self,parent,ID,title) panel = wx.Panel(self,-1) wx.Button(panel,-1,"Button1",(0,0)...
阅读全文
摘要:# coding=utf-8 import wx # 导入必须的Python包 class MenuForm(wx.Frame): def OnQuit(self,event): self.Close() def OnOpen(self,event): self.statusbar.SetStatusText('Open a File!')...
阅读全文