From 3b7f6926f1bc53e77ee750e840f37d8298f17cce Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 21 Oct 2023 07:52:57 +0800 Subject: changed name from shufflejoin -> shufflejoinlst --- stdlib.py | 4 ++-- 1 file 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): -- cgit v1.2.3