1
0
mirror of https://github.com/Eyre-S/Coeur-Morny-Cono-python.git synced 2024-09-27 18:56:20 +08:00
Coeur-Morny-Cono-python/morny/util/str.py

19 lines
272 B
Python
Raw Normal View History

2023-05-06 23:44:08 +08:00
def strm(*strs: str) -> str:
output: str = ""
for i in range(len(strs)-1):
output += strs[i]
output += "\n"
output += strs[len(strs)-1]
return output
# test for this
if __name__ == "__main__":
print(strm(
"Aaa",
" bbb",
" ccc",
"Xxx",
" yyy"
))