随笔分类 - Linux
摘要:Linux:[ghsea@localhost ~]date +%Y:%m:%d[ghsea@localhost ~]date +%Y-%m%d[ghsea@localhost ~]date +%y:%m:%dRuby: t=Date.today p t.strftime("%Y:%m:%d")有两点...
阅读全文
posted @ 2015-01-12 23:34
ghsea
摘要:场景:让用户输入一个数字,程序由1+2....一直累加到用户输入的数字为止#!/bin/bashPATH=$PATH:~/scriptexport PATH#chech whether the input is numfunction is_num(){#判断用户输入的是否是数字,是数字则返回1,否...
阅读全文
posted @ 2015-01-10 22:06
ghsea

浙公网安备 33010602011771号