1 #!/usr/bin/python 2 #coding:utf8 3 import re 4
import urllib 5 6 def gethtml(url): 7 page=urllib.urlopen(url) 8
html=page.read() 9 ret...
分类:
编程语言 时间:
2014-05-10 18:39:47
阅读次数:
399
注意:添加用户和删除用户需要root来执行。添加用户用useradd命令,例如:#
useradd -d/home/tom -s/bin/bash -u1000
tom这样就添加了新用户tom,但这时候无密码,密码重设置一下即可。主目录如果没有,可以创建一个,不影响命令执行。删除用户用userdel...
分类:
其他好文 时间:
2014-05-10 07:08:07
阅读次数:
277
远程访问500,404:错误信息,看得见;100,300,200:成功,看不见。ZMLHttpQequest对象属性:readyState对象状态(integer)0=未初始化
1=读取中 2=已读取 3=交互中 4=完成
分类:
其他好文 时间:
2014-05-10 06:45:03
阅读次数:
243
configure: error: APR not found. Please read the documentation.
configure: error: APR-util not found. Please read the documentation....
分类:
其他好文 时间:
2014-05-10 04:20:35
阅读次数:
316
不同的使用者对程序的需求不同,这就决定了要为用户提供配置环境的接口。通常情况下这类配置使用环境的文件是文本文件,常见的有xml,json,soap等。bash的配置文件用来配置bash的使用环境。前文中提过,查看环境变量的命令有:printenv、export、set、env等。bash的环境变量常..
分类:
其他好文 时间:
2014-05-10 04:16:39
阅读次数:
421
#键盘键入两个整数,并计算它们之和#!/bin/bash##echo-n"InputtwoIntergers:"read-t5-p"InputtwoIntergers[100and200]:"AB[-z$A]&&A=100[-z$B]&&B=200echo"$Aplus$Bis:$[$A+$B]"#归档文件的脚本#!/bin/bash#read-p"Threefiles:"FILE1FILE2FILE3read-p"Destinat..
分类:
系统相关 时间:
2014-05-10 04:08:25
阅读次数:
475
原文链接:http://www.guimigame.com/thread-49-1-1.html,对于代码有什么不明白的地方,可以到这里给我发问哦!
效果演示
废话不多说了,直接上代码!
JS重现_经典拼板游戏
*{margin:0;padding:0;}
.shell{margin:20px auto;position:relative;width:499px;height:...
分类:
Web程序 时间:
2014-05-10 03:45:50
阅读次数:
425
【Theos初步】1、安装Theos。Theos需要在mac和ios上均安装,ios上安装的是Theos服务器,以使得mac的thoes可以直接安装app到ios设备上。如果不需要使用此功能,则仅安装mac版即可。//
在.bash_profile中设置THESO变量export THEOS=/op...
分类:
其他好文 时间:
2014-05-09 20:02:44
阅读次数:
357
bashrc与profile的区别要搞清bashrc与profile的区别,首先要弄明白什么是交互式shell和非交互式shell,什么是login
shell 和non-login shell。交互式模式就是shell等待你的输入,并且执行你提交的命令。这种模式被称作交互式是因为shell与用户进...
分类:
系统相关 时间:
2014-05-09 19:32:47
阅读次数:
474