first commit to github

This commit is contained in:
pycook
2015-12-29 10:35:10 +08:00
committed by pycook
parent 755725a1b7
commit a91f409525
55 changed files with 5210 additions and 0 deletions

View File

@@ -0,0 +1 @@
# -*- coding:utf-8 -*-

View File

@@ -0,0 +1,9 @@
# -*- coding:utf-8 -*-
def convert_to_list(v):
if isinstance(v, list):
return v
if isinstance(v, tuple):
return list(v)
return [v, ]