上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 38 下一页
摘要: QQ群中的问题:修改系统时间:date -s 只能root用户执行,而执行SQL语句又要切换到oracle用户,但是切换用户脚本就中断了,请问谁有解决办法不?解法方法:在oracle用户下,使用sudo 命令执行 date -s 03:30修改系统时间命令,即:sudo date -s xxxx ... 阅读全文
posted @ 2013-07-30 09:56 前行者2011 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 在ubuntu9.10环境下调试通过。1.安装vim,终端输入:wanpeng@ubuntu:~$ sudo apt-get install vim-full2.终端输入,打开配置文件:wanpeng@ubuntu:~$ vim ~/.vimrc3.改写配置文件,esc+:wq保存退出:1 :set... 阅读全文
posted @ 2013-07-26 09:07 前行者2011 阅读(131) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf -8 -*-from socket import gethostname, gethostbynamefrom exceptions import AssertionErrordef get_local_ip(): ''' Return loca... 阅读全文
posted @ 2013-07-24 16:54 前行者2011 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 要依次生成:dict1= {}dict2 = {}dict3 = {}....等多个字典方法:a=[ {} ] * n #n就是要生成的字典个数例如:a = [{}]*10a[ 0 ] ={ }a[ 1 ] ={ }a[ 2 ] ={ }a[ 3 ] ={ }...........a[ 9 ] ={... 阅读全文
posted @ 2013-07-22 14:24 前行者2011 阅读(341) 评论(0) 推荐(0) 编辑
摘要: http://wiki.python.org/moin/HowTo/Sorting?highlight=%28howto%29#The_Old_Way_Using_the_cmp_Parameterpython列表排序简单记一下python中List的sort方法(或者sorted内建函数)的用法。... 阅读全文
posted @ 2013-07-17 11:19 前行者2011 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 在U盘上安装Linux系统解决方案作为一名IT菜鸟,用PE维护系统已经满足不了我的需求,把windows装进U盘又太俗,只能把目光转向Linux了。大致从网上搜索了一下教程,尽是些N年前老掉牙的教程。别的不说,那个麻烦劲就让人吐了。时代在发展,科技在进步,其实简单的方法早就有了,虽然网上也有一些,但... 阅读全文
posted @ 2013-07-17 10:39 前行者2011 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 1. su - oracle 2. sqlplus / as sysdbaexpdp详解及实例1.数据泵expdp导出工具与传统的exp导出工具的区别1)exp是客户端程序,既可以在客户端使用,也可以在服务器端使用;2)expdp是服务器端工具,只能在ORACLE服务器端使用,不能在客户端使用;3)... 阅读全文
posted @ 2013-07-17 09:38 前行者2011 阅读(174) 评论(0) 推荐(0) 编辑
摘要: gzip 压缩格式的网站处理方法---sina.com#coding:utf-8import urllib2import reimport zliburl_address = 'http://www.sina.com.cn'f = urllib2.urlopen(url_address)buf = ... 阅读全文
posted @ 2013-07-16 17:40 前行者2011 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 添加系统全局变量:步骤1:使用root用户登录,在家目录下修改.bash_profile文件,查看结果如下:[root@server132 ~]# more .bash_profile # .bash_profile# Get the aliases and functionsif [ -f ~/.... 阅读全文
posted @ 2013-07-15 17:42 前行者2011 阅读(193) 评论(0) 推荐(0) 编辑
摘要: import threadingdef test(a,b): print a, bp = threading.Thread(target=test, args=(1,2,))p.start() 阅读全文
posted @ 2013-07-15 14:28 前行者2011 阅读(102) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 38 下一页