2023-07-06 23:09:49 +08:00

8 lines
258 B
Python

# 测试用例
assert ''.join([]) == ''
assert ','.join(['a']) == 'a'
assert ','.join(['a', 'b']) == 'a,b'
assert ''.join(['a', 'b', 'c']) == 'abc'
assert '-'.join(['a', 'b', 'c']) == 'a-b-c'
assert ' '.join(['hello', 'world']) == 'hello world'
print("PASS")