For unix based system :
Hello, you can tape : Ctrld
Ctrld closes the standard input (stdin) by sending EOF.
Example :
>>> import sys
>>> message = sys.stdin.readlines()
Hello
World
My
Name
Is
James
Bond
# <ctrl-d> EOF sent
>>> print message
['Hello
', 'World
', 'My
', 'Name
', 'Is
', 'James
', 'Bond
']
For Windows :
To send EOF on Windows, you can replace Ctrld by Ctrlz
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…