data style for python

'''

integer

1,100,-8080,0
0xff00,0xa5b4c3a2

float

1.23,3.14,-9.01
1.23x109 => 1.23e9

string

'abc'
"xyz"

'I'm "OK"!' => I'm "OK"!
'''
'''I'm "OK"!'''
'''

bool

True False
and or not

null value

None

variable

[a-zA-Z][1-9]_ (cant begin with digital)

constant

use uppercase

'''

posted @ 2017-02-08 00:46  idlewith  阅读(151)  评论(0编辑  收藏  举报