LearnPython3theHardWay__Excercise 47 Automated Testing

为你代码写一个自动化测试

pycharm也提供了自动测试的功能
LearnPython3theHardWay__Excercise 47 Automated TestingLearnPython3theHardWay__Excercise 47 Automated TestingLearnPython3theHardWay__Excercise 47 Automated Testing
右键 你的类,,方法,go to 然后test
LearnPython3theHardWay__Excercise 47 Automated TestingLearnPython3theHardWay__Excercise 47 Automated Testing

create test 就可以了,详细的请读者自己研究研究哈。。我自己也不是很懂,期待有高手做一篇教程

如果只是做PTA那些oj题,,自动输入input内容的,请看下面,2月16号的

https://blog.csdn.net/byakki/article/details/86635271