1 dec 2 fixed 3 hex 4 internal 5 left 6 oct 7 right 8 scientific 9 showbase 10 showpoint 11 showpos 12 skipws 13 stdio 14 unitbuf 15 uppercase 1 dec 转 ...
分类:
移动开发 时间:
2016-07-16 06:47:54
阅读次数:
241
1. SELECT convert(varchar, getdate(), 100) -- mon dd yyyy hh:mmAM (or PM) -- Oct 2 2008 11:01AM SELECT convert(varchar, getdate(), 101) -- mm/dd/yyyy ...
分类:
数据库 时间:
2016-07-14 09:54:45
阅读次数:
227
1.1使用枚举基于Enum类实现的枚举>>>fromenumimportEnum>>>Month=Enum(‘Month‘,(‘Jan‘,‘Feb‘,‘Mar‘,‘Apr‘,‘May‘,‘Jun‘,‘Jul‘,‘Aug‘,‘Sep‘,‘Oct‘,‘Nov‘,‘Dec‘))>>>forname,memberinMonth.__members__.items():...print(name,‘=>‘,member,‘,‘,memb..
分类:
编程语言 时间:
2016-07-14 07:17:32
阅读次数:
665
Git hangs while unpacking objects (Windows) 14 Oct 2014 I'm not sure if this is because we're behind a proxy, the network has issues or my work laptop ...
分类:
Windows程序 时间:
2016-07-13 20:20:40
阅读次数:
1078
内置函数 #内置函数1、abs 取绝对值'''n = abs(-1)print(n)''' 2、all所有为真才为真 3、any只要有一个为真,就为真n = any([0,1])print(n) True 4、#bin() 十进制换二进制print(bin(12)) #oct() 十进制转八进制#h ...
分类:
编程语言 时间:
2016-07-13 16:00:28
阅读次数:
165
1、abs()求绝对值2、all()参数全部为真,则返回True,否则返回False3、any()参数中存在任一个为真,则返回True,全部为假才返回False4、bin()将参数转换为二进制表示0b5、oct()将参数转换为相应八进制表示0o6、hex()将参数转换为相应十六进制表示0x7、bytes()将参数转换成字节..
分类:
编程语言 时间:
2016-07-03 23:39:48
阅读次数:
179
Ubuntu终端常用的快捷键Oct 3, 2013 ? 25,177 views ? < >Ubuntu中的许多操作在终端(Terminal)中十分的快捷,记住一些快捷键的操作更得心应手。在Ubuntu中打开终端的快捷键是Ctrl+Alt+T。其他的一些常用的快捷键如下:快捷键 功能Tab 自动补全 ...
分类:
系统相关 时间:
2016-07-03 14:29:14
阅读次数:
223
使用Python内置函数:bin()、oct()、int()、hex()可实现进制转换。 先看Python官方文档中对这几个内置函数的描述: bin(x)Convert an integer number to a binary string. The result is a valid Pytho ...
分类:
编程语言 时间:
2016-07-03 00:17:15
阅读次数:
230
一、ABS ABS(x) 返回x的绝对值 二、BIN/OCT/HEX BIN(x) 返回x的二进制(OCT返回八进制,HEX返回十六进制) 三、CEILING/FLOOR CEILING(x):返回大于x的最小整数值 FLOOR(x):返回小于x的最大整数值 四、EXP EXP(x) 返回值e(自然 ...
分类:
数据库 时间:
2016-06-22 10:37:10
阅读次数:
182
一,查看内核版本 1. uname -a [root@localhost ~]# uname -a Linux root 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 14:46:51 UTC 2015 i686 i686 i686 GNU/Linux 2. c ...
分类:
系统相关 时间:
2016-06-22 09:18:49
阅读次数:
230