#!/usr/bin/env?python??
#coding=utf-8??
import?threading??
def?sayhello():??
????print?"hello?world"??
????global?t????????#Notice:?use?global?variable!??
???...
分类:
编程语言 时间:
2015-09-07 15:39:56
阅读次数:
157
在VS2013下如果使用strcpy有时候会报这个错误,解决方法是找到该项目的属性:在预处理定义中添加:_CRT_SECURE_NO_WARNINGS即可
分类:
其他好文 时间:
2015-09-06 12:40:53
阅读次数:
552
Android开发过程中,碰到R cannot be resolved to a variable的报错信息,好像没有很确定的错误原因,一般来说,我总结出几个可能的解决方法,希望试过以后管用。。。 1. 检查Android 的SDK是否丢失需要重新下载,...
分类:
其他好文 时间:
2015-09-06 11:20:28
阅读次数:
130
1:判空 // Bad if (variable.equals("literal")) { ... } // Good if ("literal".equals(variable)) { ... }防止偶发的空指针错误 2:检查NULL和lenght 无论如何,只要你有一个集合、数组等,请确保它存在,并且...
分类:
编程语言 时间:
2015-09-06 11:18:02
阅读次数:
138
Android开发过程中,碰到R cannot be resolved to a variable的报错信息,好像没有很确定的错误原因,一般来说,我总结出几个可能的解决方法,希望试过以后管用。。。1. 检查Android 的SDK是否丢失需要重新下载,检查build path2.确保class没有i...
分类:
其他好文 时间:
2015-09-05 11:03:07
阅读次数:
114
FOR有4个参数 /d /l /r /f 他们的作用我在下面用例子解释FOR /L %%variable IN (start,step,end) DO command [command-parameters]该集表示以增量形式从开始到结束的一个数字序列。因此,(1,1,5) 将产生序列 1 2 3 ...
分类:
其他好文 时间:
2015-09-04 12:18:44
阅读次数:
190
在MySQL里面show variables where variable_name like '%auto%'这条语句可以正常执行,但是show processlist where host like '%192%'就会报错了:Error Code : 1064You have an error ...
分类:
其他好文 时间:
2015-09-03 11:33:26
阅读次数:
162
直接贴上代码import threading def sayhello(): print "hello world" global t #Notice: use global variable! t = threading.Timer(5...
分类:
编程语言 时间:
2015-09-02 23:20:57
阅读次数:
220
一定要记得写后面的分号;http://www.runoob.com/linux/linux-shell-variable.html 这个页面的课程的循环教程是有问题的for color in yellow green white;do echo ${color}done利用循环列出某个目录...
分类:
系统相关 时间:
2015-09-02 17:24:52
阅读次数:
198
Given an integer array of variable length like so [9, 8, 8, 3] where each item in array could be 0 to 9, write a function that would take would interp...
分类:
其他好文 时间:
2015-09-02 17:10:00
阅读次数:
124