Pycharm 使用 doctest 进行判断程序是否运行正常

 

在主函数中使用 

doctest.testmod()

进行编译函数注释中的 
>>> 内容

在运行时,main函数下,右键 Debug Doctests in bikes 进行调试

2020-11-11

原文地址:https://www.cnblogs.com/hany-postq473111315/p/13958556.html