⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 echo.py

📁 用wxPython编写GUI程序的样例代码
💻 PY
字号:


"""
This is a simple little echo program that is used by the wxProcess
demo.  It reads lines from stdin and echos them back to stdout, until
there is an EOF on stdin.

Enter text in the field below to send to the stdin of the echo
process.  Clicking on 'Close Stream' will close the stream in the
demo, and then echo.py should terminate too...
"""

import sys

sys.stdout.write( __doc__)
sys.stdout.flush()

line = sys.stdin.readline()
while line:
    line = line[:-1]
    sys.stdout.write('\nYou typed "%s"\n' % line)
    line = sys.stdin.readline()


sys.stdout.write('\nExiting...\n')

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -