Python
minmin_bufucisheng
这个作者很懒,什么都没留下…
展开
-
简记python单元测试流程
1.import unittest 引入单元测试框架2.import math 引入需要测试的代码(一般是一个方法)3.去继承unit下的case4.最好加个夹心饼干(print测试开始啦/测试结束啦)5.使用python里的断言去对比正确情况和调用math的情况,打印结果6.使用if __name__ == '__main__'来只打印当前测试的结果,不去打印另外方法里math的...原创 2018-05-31 16:10:32 · 217 阅读 · 0 评论 -
Spellchecker inspection helps locate typos and misspelling in your code~ 解决pycharm检查拼写一直有波浪线
具体报错:Spellchecker inspection helps locate typos and misspelling in your code, comments and literals, and fix them in one click. 转载地址:https://www.cnblogs.com/gongxin/p/8051475.html 自从把默认的头注释的a...转载 2019-01-09 22:45:09 · 1912 阅读 · 0 评论 -
pycharm引入python模块
原创 2019-03-13 12:33:25 · 408 阅读 · 0 评论