首页 > 其他
tkinter事件高级用法实例
from tkinter import * import threading, time trace = 0 class CanvasEventsDemo: def __init__(self, parent=None): canvas = Canvas(width=300, height=300,
分类:其他   时间:2016-02-14 06:47:16    收藏:0  评论:0  赞:0  阅读:318
tkinter菜单图标,工具栏
所用的图片: import tkinter as tk from tkinter import messagebox, filedialog, simpledialog, colorchooser from tkinter import ttk from PIL import Image, Imag
分类:其他   时间:2016-02-14 06:47:06    收藏:0  评论:0  赞:0  阅读:240
[Git] set-upstream
When you want to push your local branch to remote branch, for the first push: git push --set-upstream origin <branch_name> The reason to set 'up-strea
分类:其他   时间:2016-02-14 06:46:46    收藏:0  评论:0  赞:0  阅读:237
项目管理之代码编写的自我认知
很长一段时间以来都没有写有关代码的东西了。主要是工作由代码编制转向了研发管理、项目管理方向。在做项目研发管理时, 接手了一些二手,三手? ...
分类:其他   时间:2016-02-14 02:04:38    收藏:0  评论:0  赞:0  阅读:305
迟来的年终总结(2014-2015)
分类:其他   时间:2016-02-14 02:00:53    收藏:0  评论:0  赞:0  阅读:253
HUST 1010 The Minimum Length(最小循环节)
题目链接:[kuangbin带你飞]专题十六 KMP & 扩展KMP & Manacher F - The Minimum Length题意 有一个字符串A,假设是”abcdefg”,由A可以重复组成AAA,即”abcdefgabcdefgabcdefg”,从中截取一部分(至少包含一个以上完整A)为B。 现给出字符串B,求A最短的长度。 思路 因为是重复组成的,所以abcd==bc...
分类:其他   时间:2016-02-14 01:40:39    收藏:0  评论:0  赞:0  阅读:152
CodeForces 625C K-special Tables
简单构造 #include <stdio.h> #include <algorithm> #include <string.h> #include <queue> #include <stack> #include <map> #include <vector> using namespace st
分类:其他   时间:2016-02-14 01:39:07    收藏:0  评论:0  赞:0  阅读:112
RAII 封装的 thread
class ThreadRAII { public: // whether join or detach should be called, // when a this object is destroyed. enum class DtorAction { join, detach }; Thr
分类:其他   时间:2016-02-14 01:38:57    收藏:0  评论:0  赞:0  阅读:276
不同时间复杂度的规模上限
重要的事实: 当代计算机1s内可做10^7左右次计算 配置好的机器可到k*10^7~10^8 复杂度 数量级 最大规模 O(logN) >>10^20 很大 O(N^1/2) 10^12 10^14 O(N) 10^6 10^7 O(NlogN) 10^5 10^6 O(N^2) 1000 2500
分类:其他   时间:2016-02-14 01:38:47    收藏:0  评论:0  赞:0  阅读:254
【POJ 1035】Spell checker
题 题意 每个单词,如果字典里存在,输出”该单词 is correct“;如果字典里不存在,但是可以通过删除、添加、替换一个字母得到字典里存在的单词,那就输出“该单词:修正的单词”,并按字典里的顺序输出;如果都不存在,那就输出“单词:”就好。。。 分析 存下字典单词们和它们的长度,对每个要查找的单词
分类:其他   时间:2016-02-14 01:38:37    收藏:0  评论:0  赞:0  阅读:116
CodeForces 625B War of the Corporations
暴力匹配+一点判断 #include <stdio.h> #include <algorithm> #include <string.h> #include <queue> #include <stack> #include <map> #include <vector> using namespa
分类:其他   时间:2016-02-14 01:38:27    收藏:0  评论:0  赞:0  阅读:367
nginx配置location [=|~|~*|^~] /uri/ { … }用法
版权声明:https://github.com/wusuopubupt ====== nginx location语法基本语法:location [=|~|~*|^~] /uri/ { … }= 严格匹配。如果这个查询匹配,那么将停止搜索并立即处理此请求。~ 为区分大小写匹配(可用正则表达式)!~为
分类:其他   时间:2016-02-14 01:38:17    收藏:0  评论:0  赞:0  阅读:213
1057. Stack (30)
Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operations include Push (
分类:其他   时间:2016-02-14 01:38:07    收藏:0  评论:0  赞:0  阅读:243
叮咚recovery——想刷什么包就刷什么包
我手机vivo s11t,我之前试过刷机,刷过很多包,发现只有官网下载的相同版本的固件包可以成功刷入,其他的任何的包都不行,我弟弟的手机vivo x3L,遇见和我一样的情况,他想刷小米的MIUI,开始一直失败,后来某一天告诉我他成功刷好了,奇怪,我问了之后发现使用的是叮咚工具箱,这个工具其实就是改变
分类:其他   时间:2016-02-14 01:37:46    收藏:0  评论:0  赞:0  阅读:272
【UVA 1583】Digit Generator
题 题意 a+a的各位数=b,则b是a的digitSum,a是b的generator,现在给你digitSum,让你求它的最小的generator。 分析 一种方法是: 打表,也就是把1到100000的digitSum求出来,对每个digitSum保存最小的generator。 另一种方法是: 对d
分类:其他   时间:2016-02-14 01:37:36    收藏:0  评论:0  赞:0  阅读:238
UIStackView相关
从iOS9开始,苹果提供了UIStackView来帮助我们做布局,这玩意儿类似于安卓的线性布局。因为在使用过程中会遇到一些坑,所以写出来供遇到同样问题的人参考。我在这里提供xib和纯代码两种方式创建使用 UIStackView: 先看一下运行效果: 垂直方向,在图一里,label被拉伸了,在图2里面
分类:其他   时间:2016-02-14 01:36:05    收藏:0  评论:0  赞:0  阅读:243
HDU5627--Clarke and MST (bfs+位运算)
http://www.cnblogs.com/wenruo/p/5188495.html Clarke and MST Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) 问题描述 克拉克是
分类:其他   时间:2016-02-14 01:35:55    收藏:0  评论:0  赞:0  阅读:569
CodeForces 625A Guest From the Past
贪心水题 #include <stdio.h> #include <algorithm> #include <string.h> #include <queue> #include <stack> #include <map> #include <vector> using namespace st
分类:其他   时间:2016-02-14 01:35:45    收藏:0  评论:0  赞:0  阅读:319
图片切换实例
<html> <head> <meta http-equiv="content-type" content="text/html" charset="UTF-8"> <script type="text/javascript" > var picArr=new Array("1.jpg","2.jp
分类:其他   时间:2016-02-14 01:35:35    收藏:0  评论:0  赞:0  阅读:206
禁止UITextField 使用粘贴复制功能
在开发中有时候会遇到这样的需求,就是一个文本框里面的内容不允许用户复制,或者不允许用户将其它地方复制的内容粘贴进来,本文交给你怎么实现禁止 UITextField 的粘贴、复制。 在 UITextField 中有这样一个方法:-canPerformAction:withSender:,下面来重写这个
分类:其他   时间:2016-02-14 01:35:25    收藏:0  评论:0  赞:0  阅读:177
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!