上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
摘要: 1、广搜(从结点s开始 往外逐层搜索) 阅读全文
posted @ 2018-08-15 15:06 萌新上路 阅读(109) 评论(0) 推荐(0) 编辑
摘要: # include # include # include using namespace std; int d[1001][1001]; int main() { int n,m; cin>>n; while(n--) { string s1,s2; cin>>s1>>s2; int len1 ... 阅读全文
posted @ 2018-08-15 10:18 萌新上路 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1、递归求解(直接递归会超时,要用备忘录法) 2、递推 阅读全文
posted @ 2018-08-14 17:57 萌新上路 阅读(111) 评论(0) 推荐(0) 编辑
摘要: import wx class Mywin(wx.Frame): def __init__(self, parent, title): super(Mywin, self).__init__(parent, title = title,size = (350,250)) panel = wx.Panel(self) vbox... 阅读全文
posted @ 2018-06-10 16:41 萌新上路 阅读(650) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import wx import os class my_frame(wx.Frame): """This is a simple text editor""" def __init__(self,parent, title): wx.Frame.__init__(self, parent, title=title,... 阅读全文
posted @ 2018-06-10 12:35 萌新上路 阅读(179) 评论(0) 推荐(0) 编辑
摘要: #coding:UTF-8 import wx app = wx.App() def dragEVT(event): if event.ButtonDown(): panel1.SetPosition(event.GetPosition()) elif event.Dragging(): panel1.SetPos... 阅读全文
posted @ 2018-06-10 12:14 萌新上路 阅读(126) 评论(0) 推荐(0) 编辑
摘要: wxPython首先在触发对象中查找匹配事件类型的被绑定的处理器函数,如果找到,刚相应方法被执行。如果没找到,wxPython将检查该事件是否传送到了上一级的容器,如果是,父窗口被检查,如此一级级向上查找,直到找到一个处理函数或到达顶层窗口。 阅读全文
posted @ 2018-06-10 12:12 萌新上路 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 事件处理是wxPython程序工作的基本机制,先看几个术语: 事件(event):应该程序期间发生的事情,要求有一个响应。 事件对象(event object):代表具体一个事件,包括事件的数据属性,为wx.Event或其子类的实例,如wx.CommandEvent/wx.MouseEvent。 事 阅读全文
posted @ 2018-06-10 12:10 萌新上路 阅读(180) 评论(0) 推荐(0) 编辑
摘要: wxSingleChoiceDialog(wxWindow* parent, const wxString& message, const wxString& caption, int n, const wxString* choices, void** clientData = NULL, lon 阅读全文
posted @ 2018-06-10 12:05 萌新上路 阅读(316) 评论(0) 推荐(0) 编辑
摘要: wxTextEntryDialog(wxWindow* parent, const wxString& message, const wxString& caption = "Please enter text", const wxString& defaultValue = "", long st 阅读全文
posted @ 2018-06-10 12:03 萌新上路 阅读(415) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页