python print array without brackets in a single row
python 3
>>> for i in range(1, 11):
... print(i, end='')
...
12345678910>>>
python 2
names = ["Sam", "Peter", "James", "Julian", "Ann"]
print ', '.join(names)
fonte: http://stackoverflow.com/questions/11178061/python-print-array-without-brackets-in-a-single-row
Nenhum comentário:
Postar um comentário