0、如果点击按钮,运行了一个比较耗时的操作,那么界面会卡死 import tkinter as tk import time def onclick(text, i): time.sleep(3) text.insert(tk.END, '按了第{}个按钮\n'.format(i)) root =
分类:
其他 时间:
2016-02-12 06:04:28
收藏:
0 评论:
0 赞:
0 阅读:
1694
题 题意 有个1到n的一个全排列,告诉你第i个数和全部n个数相比的较小的是哪个,和自己相比时为0,于是有个主对角线为0的矩阵,求原数列 分析 我的想法是,给我们的每一行之和按大小排一下,就知道第i个数是数列里第几大的了。因为是n的全排列,所以第几大就是几。 按sum排完序后,r[sum[i].id]
分类:
其他 时间:
2016-02-12 06:04:07
收藏:
0 评论:
0 赞:
0 阅读:
370
看到了一篇不错的文章《你会用setTimeout吗 》,转载过来的,改了个名字,一下子感觉搞大上了,嘎嘎。 加了几个关于 setTimeout 和setInterval的小知识: 关于setInterval()和setTimeout()返回值 setInterval(),setTimeout() 会
分类:
其他 时间:
2016-02-12 06:03:57
收藏:
0 评论:
0 赞:
0 阅读:
171
题 Today, Wet Shark is given n integers. Using any of these integers no more than once, Wet Shark wants to get maximum possible even (divisible by 2) s
分类:
其他 时间:
2016-02-12 06:03:27
收藏:
0 评论:
0 赞:
0 阅读:
355
package com.zb.zhihuianyang.base; import android.app.Activity; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.L
分类:
其他 时间:
2016-02-12 06:03:17
收藏:
0 评论:
0 赞:
0 阅读:
1793
Big Christmas Tree 题意:输入v个节点和e条边(0 ≤ v, e ≤ 50000) 的图,第二行输入每个节点的权值,之后e行输入每条边的端点和权值; 问是否能找出一棵树,使得树中的边权乘以该边下面的子孙节点权值之和的sigma总和最小;(树以1为根节点) Sample Input
分类:
其他 时间:
2016-02-12 06:02:57
收藏:
0 评论:
0 赞:
0 阅读:
190
题 There are n sharks who grow flowers for Wet Shark. They are all sitting around the table, such that sharks i andi?+?1 are neighbours for all i from
分类:
其他 时间:
2016-02-12 06:02:26
收藏:
0 评论:
0 赞:
0 阅读:
272
Tar 归档命令德一点心得 (持续更新) 一 : -x 解压文件 二 : -v 显示每一条文件的处理情况 (用于目录里面包含文件的情况) 三 : -f 使用后面的文件 或者设备 作为 目标 (用于归档) 四 : -j 用于 tar.bz 或 tar.bz2 压缩归档的文件解压
分类:
其他 时间:
2016-02-12 06:02:16
收藏:
0 评论:
0 赞:
0 阅读:
157
题 There are 2N white balls on a table in two rows, making a nice 2-by-N rectangle. Jon has a big paint bucketfull of black paint. (Don’t ask why.) He
分类:
其他 时间:
2016-02-12 06:02:06
收藏:
0 评论:
0 赞:
0 阅读:
231
克里金插值的基本介绍可以参考ARCGIS的帮助文档[1]. 其本质就是根据已知点的数值,确定其周围点(预测点)的数值。最直观的方法就是找到已知点和预测点数值之间的关系,从而预测出预测点的数值。比如IDW插值方法,就是假设已知点和预测点的值跟它们相对距离成反比。克里金插值的精妙之处在于它不仅考虑了已知
分类:
其他 时间:
2016-02-12 06:01:56
收藏:
0 评论:
0 赞:
0 阅读:
1074
题 You are given array ai of length n. You may consecutively apply two operations to this array: remove some subsegment (continuous subsequence) of len
分类:
其他 时间:
2016-02-12 00:57:50
收藏:
0 评论:
0 赞:
0 阅读:
471
Description A single positive integer i is given. Write a program to find the digit located in the position i in the sequence of number groups S1S2...
分类:
其他 时间:
2016-02-12 00:57:20
收藏:
0 评论:
0 赞:
0 阅读:
188
Sublime Text 3 是一个了不起的软件。首先,它是一个干净,实用,可以快速的编写代码编辑器。它不仅具有令人难以置信的内置功能(多行编辑和VIM模式),而且还支持插件,代码片段和其他许多东西。 我知道,网上已经有许多关于 Sublime Text 3 的文章,这事好事情。在这篇文章中,我们将
分类:
其他 时间:
2016-02-12 00:56:39
收藏:
0 评论:
0 赞:
0 阅读:
342
收集的一些常用快捷键: 选择类 Ctrl+D 选中光标所占的文本,继续操作则会选中下一个相同的文本。 Alt+F3 选中文本按下快捷键,即可一次性选择全部的相同文本进行同时编辑。举个栗子:快速选中并更改所有相同的变量名、函数名等。 Ctrl+L 选中整行,继续操作则继续选择下一行,效果和 Shift
分类:
其他 时间:
2016-02-12 00:56:30
收藏:
0 评论:
0 赞:
0 阅读:
196
1.编程规范 2.设计模式MVC、代理 3.UIKit框架 UIkit简介以及UI层次结构、UI类结构 UI组件原理以及使用 UIApplication UIView以及子类 UIViewController 4.自定义UI组件 5.多点触控、手势处理 6.UI动画编程 7.兼容性开发 分辨率兼容(
分类:
其他 时间:
2016-02-12 00:56:19
收藏:
0 评论:
0 赞:
0 阅读:
214
原题链接在这里:https://leetcode.com/problems/wiggle-sort-ii/ Given an unsorted array nums, reorder it such that nums[0] < nums[1] > nums[2] < nums[3].... Exa
分类:
其他 时间:
2016-02-12 00:55:38
收藏:
0 评论:
0 赞:
0 阅读:
640
UIConllectionView和UITableView类似,也是展示数据,但不同于UITableView那种规则的布局,UICollectionView可以实现不规则的布局,即瀑布流。 创建UICollectionView UICollectionView *collectionView = [
分类:
其他 时间:
2016-02-12 00:55:28
收藏:
0 评论:
0 赞:
0 阅读:
264
1 //求从(sx.sy)到(gx.gy)的最短距离; 2 3 #include<iostream> 4 #include<cstdio> 5 #include<cstdio> 6 #include<queue> 7 #include<cstring> 8 #define INF 99999999
分类:
其他 时间:
2016-02-12 00:55:18
收藏:
0 评论:
0 赞:
0 阅读:
265
在程序员的鄙视链里,大概外包是最最底端的一环。如果你找一个程序员咨询做出一个IT项目的方法,哪怕他有一万种方法,他也会加一句说,千万别找外包。他的理由大概是外包的代码质量很差。在以前,可能真的是这样。我也见识过拿DedeCMS强撸电商和OpenCart强撸门户的代码……醉得我不要不要的。感谢移动开发时代的到来,毕竟是全新的平台,之前的随便拿套开源的PHP代码强行二次开发的时代基本上过去了。在我创业开...
分类:
其他 时间:
2016-02-11 23:51:21
收藏:
0 评论:
0 赞:
0 阅读:
429
扩展KMP基础题目。 1 /* 4333 */ 2 #include <iostream> 3 #include <sstream> 4 #include <string> 5 #include <map> 6 #include <queue> 7 #include <set> 8 #include
分类:
其他 时间:
2016-02-11 23:50:30
收藏:
0 评论:
0 赞:
0 阅读:
411