Autocorrected Typing Software

这是SICP课程的第二个project,主要功能是测试打字速度,您可以开启自动改正功能来更正您在输入时的一些小错误,完整版的在线体验地址如下:

Cats

我个人的代码地址如下(自动改正功能不算太完善):

https://box.nju.edu.cn/f/1442ae97e9b3419cabe4/?dl=1

如何在本地运行这个 software 呢?

首先,我们需要在本地安装 python 环境,方法如下(如果已安装请忽略):

Autocorrected Typing Software_第1张图片

 其中 python 官方网站地址为 Welcome to Python.org

接下来,我们打开 Windows powershell: 右键屏幕左下角的“开始”图标,点击 Windows Powershell(I) ,或者按下 Win +R, 然后输入 Powershell 回车运行。

下一步,找到您存放代码文件的地址,例如(C:\Users\Admin Yu\Desktop\cats

然后在 powershell 中输入 cd: ' 您的地址 ' 并按下回车:

Autocorrected Typing Software_第2张图片

 上图表示成功切换当前地址(如果出现错误,可以尝试把引号去掉)

最后,我们键入 python gui.py

如无意外,我们就会在浏览器中打开图形交互页面,在这里您可以体验到打字的乐趣,还可以和您的朋友来一场pk!

Autocorrected Typing Software_第3张图片

注:It seems that your gui.py is running in your own brower, then how could they communicate with each other? In fact, gui.pys do not know each other, they are just a client which will connect to cats.cs61a.org's server program. That program will handle all clients requests and response back. 

你可能感兴趣的:(python)