diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-21 07:52:57 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-21 07:52:57 +0800 |
| commit | 3b7f6926f1bc53e77ee750e840f37d8298f17cce (patch) | |
| tree | 39f4b38920f9454a72e2d58721b4de98985972f3 /stdlib.py | |
| parent | 4519370ea28cd2b9dd392f9cb5b153a15de85e58 (diff) | |
changed name from shufflejoin -> shufflejoinlst
Diffstat (limited to 'stdlib.py')
| -rwxr-xr-x | stdlib.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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): |
