The Python Apprentice
上QQ阅读APP看书,第一时间看更新

Leaving the REPL

At this point, we should show you how to exit the REPL and get back to your system shell prompt. We do this by sending the end-of-file control character to Python, although unfortunately the means of sending this character varies across platforms.