first commit to github

This commit is contained in:
pycook
2015-12-29 10:35:10 +08:00
parent 372a5856d6
commit 75d5f0f68a
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, ]