上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 38 下一页
  2013年6月7日
摘要: -q, --quiet, --silent Quiet; do not write anything to standard output. Exit immediately with zero status if any match is found, even if an error was detected. Also see the -s or --no-messages option. (-q is specified by POSIX.) 阅读全文
posted @ 2013-06-07 11:25 语辰 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 将服务器的时间格式化语法:string date(string format, int [timestamp]);返回值:字符串函数种类:时间日期返回值的字符串依配置的格式来决定。若有传入时间戳记值,则将时间戳记格式化返回;若无传入时间戳记值,则将目前服务器的时间格式化返回。要将日期转为其它的语系格式,应使用setlocale()及strftime()二个函数。字符串格式化的选项如下:http://php.freehostingguru.com/function.php-date.php 阅读全文
posted @ 2013-06-07 10:39 语辰 阅读(170) 评论(0) 推荐(0) 编辑
  2013年6月6日
摘要: >>> datetime.date.today()datetime.date(2013, 6, 6) 阅读全文
posted @ 2013-06-06 15:22 语辰 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 当有人问你昨天是几号,是不是很容易就得到答案但当问你100天前是几号,你是不是又能很容易地得出答案?用程序来实现一下吧,datetime的timedeltime就派上用场了import datetime(datetime.datetime.now() - datetime.timedelta(days = 100)).strftime("%Y-%m-%d")>>> import datetime>>> help(datetime.timedelta)>>>>>> datetime.datetime.no 阅读全文
posted @ 2013-06-06 15:18 语辰 阅读(480) 评论(0) 推荐(0) 编辑
摘要: utime(...) utime(path, (atime, mtime)) utime(path, None) Set the access and modified time of the file to the given values. If the second form is used, set the access and modified times to the current time. 阅读全文
posted @ 2013-06-06 11:59 语辰 阅读(468) 评论(0) 推荐(0) 编辑
摘要: Help on built-in function dump in module cPickle:dump(...) dump(obj, file, protocol=0) -- Write an object in pickle format to the given file. See the Pickler docstring for the meaning of optional argument proto. 阅读全文
posted @ 2013-06-06 10:36 语辰 阅读(1168) 评论(0) 推荐(0) 编辑
  2013年6月5日
摘要: o --batch, -B Print results using tab as the column separator, with each row on a new line. With this option, mysql does not use the history file. 阅读全文
posted @ 2013-06-05 16:46 语辰 阅读(343) 评论(0) 推荐(0) 编辑
摘要: -m module-name Searches sys.path for the named module and runs the correspond- ing .py file as a script. 阅读全文
posted @ 2013-06-05 16:41 语辰 阅读(612) 评论(0) 推荐(0) 编辑
摘要: $0 这个程式的执行名字 $n 这个程式的第n个参数值,n=1..9 $* 这个程式的所有参数 $# 这个程式的参数个数 $$ 这个程式的PID $! 执行上一个背景指令的PID $? 执行上一个指令的返回值 阅读全文
posted @ 2013-06-05 16:37 语辰 阅读(135) 评论(0) 推荐(0) 编辑
摘要: %5d ,左补空格%-5d,右补空格 阅读全文
posted @ 2013-06-05 16:26 语辰 阅读(324) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 38 下一页