first commit

This commit is contained in:
Oriol Filter Anson
2022-03-05 23:42:29 +01:00
commit 5140df5df6
10 changed files with 576 additions and 0 deletions

12
t3.py Normal file
View File

@@ -0,0 +1,12 @@
from dataclasses import dataclass
def return_list(txt: str or [str]) -> [str]:
_list = []
if type(txt) in (tuple, list):
_list = txt
elif type(txt) in (str, int):
_list = [txt]
return _list
print(return_list("xxx"))