Найти - Пользователи
Полная версия: вывод элементов массива
Начало » Python для новичков » вывод элементов массива
1
se111!
Есть переменная data вида:
['127.0.0.1', '127.0.0.2', '127.0.0.3']
socks5 = data[0]
print socks5
выводит строку
127.0.0.1
нужно вывести построчно:
127.0.0.1
127.0.0.2
127.0.0.3
PooH
print '\n'.join(data)
bw
for addr in data:
print addr
:-)

..bw
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB