第一步:设置截图工具快捷键
具体步骤:开始->所有程序->附件->截图工具->“右击”出现属性并选择->设置快捷键->此处我设置为“CTRL+ALT+P”,P是print的意思,分别如下图:
同理,设置画图工具的快捷键,我的设置为“CTRL+ALT+D”,D是draw的意思。
第二步:上述快捷键经典使用方法
“CTRL+ALT+P”---->““CT...
分类:
其他好文 时间:
2015-05-22 22:35:10
阅读次数:
223
去空格及特殊符号s.strip().lstrip().rstrip(',')复制字符串#strcpy(sStr1,sStr2)sStr1 = 'strcpy'sStr2 = sStr1sStr1 = 'strcpy2'print sStr2连接字符串#strcat(sStr1,sStr2)sStr1...
分类:
编程语言 时间:
2015-05-22 21:06:41
阅读次数:
194
#!/usr/bin/python
#!_*_coding:utf-8_*_
importos
#importdatetime
importtime
#获取文件在系统的时间戳
SysTime=int(os.popen("stat-t/home/ftp/sync.log|awk‘{print$12}‘").read())
#读取文件内记录的时间戳
WinTime=int(open(‘/home/ftp/sync.log‘,‘r‘).read())
ifSysTime..
分类:
其他好文 时间:
2015-05-22 19:21:14
阅读次数:
224
1、如果能将类的方法定义成static,就尽量定义成static,它的速度会提升将近4倍。 2、$row[’id’] 的速度是$row[id]的7倍。 3、echo 比 print 快,并且使用echo的多重参数(译注:指用逗号而不是句点)代替字符串连接,比如echo $str1,$str2。 .....
分类:
Web程序 时间:
2015-05-22 19:08:15
阅读次数:
147
1 x=12 def fun(x):3 x = 25 fun(x)6 print(x)上面这行代码输出为1,原因是x是全局变量,如果函数里边出现和全局变量相同的局部变量,并在函数体内对该变量重新赋值,结果也只是在该函数内此变量的值为新值,而在函数体外此变量的值并不被改变。
分类:
其他好文 时间:
2015-05-22 18:30:50
阅读次数:
110
1、字典的用法: s={'s1':12,'s2':7889,'s3':345} print s['s1'] //获取s中s1的值 s['s1']=34 //把s1的值改为34 s['s3']=125 //新增一个s3值为125 s={} //新建一个空字典2、词典元素的循环调用 s={'s...
分类:
编程语言 时间:
2015-05-22 13:16:44
阅读次数:
119
转载:http://blog.csdn.net/unix21/article/details/9991925set print addressset print address on打开地址输出,当程序显示函数信息时,GDB会显出函数的参数地址。系统默认为打开的,show print address...
分类:
数据库 时间:
2015-05-22 11:13:34
阅读次数:
182
来看一个例子: #import <Foundation/Foundation.h> @interface MyTst : NSObject - (void) print; @end @implementation MyTst - (void) print { ? ? NSLog(@"xxxxxxxxxx"); } @end #import <UIKit/UIKit.h> #...
分类:
其他好文 时间:
2015-05-22 09:54:36
阅读次数:
117
选择排序publicclassChooseSort{publicstaticvoidmain(String[]args){int[]x={2,332,16,575,203,4,23,11,345,32};ChooseSortcs=newChooseSort();cs.selectSort(x);for(inti=0;i<x.length;i++){System.out.print(x[i]+"");}}publicstaticvoidselectSort(int[]a){intminIndex=..
分类:
编程语言 时间:
2015-05-22 02:04:29
阅读次数:
171
// A O(n^2) time and O(1) space program to find the longest palindromic substring#include // A utility function to print a substring str[low..high]voi...
分类:
其他好文 时间:
2015-05-22 00:28:09
阅读次数:
110