KyeboardからWhile LoopでEvent作成
def sample1(value):
print(value)
try:
while True:
value = input()
sample1(value)
except KeyboardInterrupt:
pass
結果
9
9
0
0
kinkun's blog
KyeboardからWhile LoopでEvent作成
def sample1(value):
print(value)
try:
while True:
value = input()
sample1(value)
except KeyboardInterrupt:
pass
結果
9
9
0
0