码迷,mamicode.com
首页 >  
搜索关键字:print    ( 43532个结果
Linux--对文件夹下的配置文件批量改动IP
sed -i 's/10.1.1.1/10.1.1.2/g' `grep -ir 10.1.1.1 * |grep -E '.xml:|.cfg:|.ini:|.wsdl:|.properties:' | awk -F: '{print $1}' | uniq `注:当中1为原IP,2为新IP ;要...
分类:系统相关   时间:2014-11-02 12:05:10    阅读次数:154
python——3.x的异常处理 请注意了
以前的python2.x的时候:try:fp=urllib.request.urlopen(blogurl)exceptException,e:print(e)print('downloadexception%s'%blogurl)return0现在python3.x的时候:try:fp=urlli...
分类:编程语言   时间:2014-11-02 10:44:11    阅读次数:209
数据库(聚合函数)
select abs(-5)--绝对值 在结果框里显示print abc(-5)--消息框里显示select code,xingming,abs(yuwen)as yuwen from xhushengbiaoselect code,xingming,yuwen from xhushengbiao ...
分类:数据库   时间:2014-11-02 00:31:53    阅读次数:206
ZOJ1969-Hard to Believe, but True!
1 import re 2 while True: 3 x = raw_input() 4 if(x == '0+0=0'): 5 print 'True' 6 break 7 a,b,c = re.split('[+=]', x) 8 ...
分类:其他好文   时间:2014-11-02 00:27:55    阅读次数:158
python基础-线程创建方式
python中提供了两种创建线程的方式1.采用thread.start_new_thread(funciton,args..)2.集成Thread类第一种方式import thread as timport time#Define a function for the threaddef print...
分类:编程语言   时间:2014-11-02 00:23:22    阅读次数:256
Python入门之AB猜数字游戏
用Python2随便写的,py3自行替换 #coding=utf8 import?random max_try?=?5 c?=?3 allow_number_set?=?set(‘1234567890‘) goal_str?=?‘‘.join(random.sample(allow_number_set,c)) print?goal_str try_...
分类:编程语言   时间:2014-11-01 23:20:42    阅读次数:937
Python 得到主机字节序
使用Python可以很快得到一些系统的信息,比如平台,字节序,和Python最大递归限制,比如:import sys# get byte orderprint sys.byteorder# get platform print sys.platform# nothing to say ^_^pri....
分类:编程语言   时间:2014-11-01 19:04:48    阅读次数:236
(String) | String.valueOf()
Map m = new HashMap(); Integer i = 5; String s = null; m.put("val1", i); m.put("val2", s); System.err.println(m.get("val1")); System.err.prin...
分类:其他好文   时间:2014-11-01 16:15:31    阅读次数:145
Atitit.软件GUI按钮与仪表盘(01)--js区-----js格式化的使用
Atitit.软件GUI按钮与仪表盘(01)--js区-----js格式化的使用   1. Chrome36( recomm)   DEV TOOL>SOURCE> DSWEIHAMYAR  " PRETTY PRINT.."...ICON dakwahaor..   作者::老哇的爪子Attilax艾龙,EMAIL:1466519819@qq.com 转载请注明来源: http:/...
分类:Web程序   时间:2014-11-01 11:59:12    阅读次数:179
PAT 1024 Palindromic Number
#include #include #include #include using namespace std;void print(vector &num) { int len = num.size(); bool value_begin = false; for (int i=...
分类:其他好文   时间:2014-10-31 20:37:03    阅读次数:210
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!