質問編集履歴
1
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
import socket
|
5
5
|
while True:
|
6
6
|
try:
|
7
|
-
hostname = input('ホスト名を入力(qで終了)
|
7
|
+
hostname = input('ホスト名を入力(qで終了):')
|
8
8
|
if hostname == 'q':
|
9
9
|
break
|
10
10
|
print(socket.gethostbyname(hostname))
|