summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2023-10-21 07:52:57 +0800
committerlittleblack111 <littleblack11111@gmail.com>2023-10-21 07:52:57 +0800
commit3b7f6926f1bc53e77ee750e840f37d8298f17cce (patch)
tree39f4b38920f9454a72e2d58721b4de98985972f3
parent4519370ea28cd2b9dd392f9cb5b153a15de85e58 (diff)
changed name from shufflejoin -> shufflejoinlst
-rwxr-xr-xstdlib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib.py b/stdlib.py
index dd43eb2..44bef07 100755
--- a/stdlib.py
+++ b/stdlib.py
@@ -122,7 +122,7 @@ def printf(*value: str):
print(str(i2str(value)), end='', flush=True)
# mixly(shuffle) join a list to another
-def shufflejoin(str1: str, str2: str, *others):
+def shufflejoinlst(str1: str, str2: str, *others) -> list:
from random import shuffle
tmpstr = str1 + str2
if others:
@@ -131,7 +131,7 @@ def shufflejoin(str1: str, str2: str, *others):
tmpstrlst = list(tmpstr)
shuffle(tmpstrlst)
- return ''.join(tmpstrlst)
+ return tmpstrlst
# limit string to how much charactor it can use, and delete other then that
def limitstring(string: str, limit: int):