add simple tools
This commit is contained in:
parent
575cfd3b7a
commit
a2b96becc1
1 changed files with 11 additions and 0 deletions
11
corrlib/tools.py
Normal file
11
corrlib/tools.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
|
||||
|
||||
def str2list(s):
|
||||
return s.split(",")
|
||||
|
||||
def list2str(l):
|
||||
s = l[0]
|
||||
for it in l[1:]:
|
||||
s += ',' + it
|
||||
return s
|
Loading…
Add table
Add a link
Reference in a new issue