From a2b96becc147e380a57fd531e1081b9834526f7b Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Sun, 30 Mar 2025 18:02:47 +0000 Subject: [PATCH] add simple tools --- corrlib/tools.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 corrlib/tools.py diff --git a/corrlib/tools.py b/corrlib/tools.py new file mode 100644 index 0000000..a912731 --- /dev/null +++ b/corrlib/tools.py @@ -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 \ No newline at end of file