2014-04-09 19:17:53 +01:00
|
|
|
print(','.join(()))
|
|
|
|
print(','.join(('a',)))
|
|
|
|
print(','.join(('a', 'b')))
|
|
|
|
|
|
|
|
print(','.join([]))
|
|
|
|
print(','.join(['a']))
|
|
|
|
print(','.join(['a', 'b']))
|
|
|
|
|
|
|
|
print(''.join(''))
|
|
|
|
print(''.join('abc'))
|
|
|
|
print(','.join('abc'))
|
|
|
|
print(','.join('abc' for i in range(5)))
|
2014-05-11 19:13:01 +01:00
|
|
|
|
|
|
|
print(b','.join([b'abc', b'123']))
|
|
|
|
|
|
|
|
try:
|
|
|
|
print(b','.join(['abc', b'123']))
|
|
|
|
except TypeError:
|
|
|
|
print("TypeError")
|
|
|
|
|
|
|
|
try:
|
|
|
|
print(','.join([b'abc', b'123']))
|
|
|
|
except TypeError:
|
|
|
|
print("TypeError")
|