1. 首页
  2. 课程学习
  3. 讲义
  4. 笨办法学python 习题ex48 示例

笨办法学python 习题ex48 示例

上传者: 2020-08-08 01:19:04上传 ZIP文件 1.16KB 热度 22次
笨办法学pythoon 习题48 词汇扫描器代码 。 单元测试代码有微调。 常见错误 1. 'module' object has no attribute 'scan' 在测试文件里改成from ex48.lexicon import Lexicon 2.unbound method scan() must be called with Lexicon instance as first argument (got str instance instead) 类在引用前没有实例化,将测试文件改成 assert_equal(lexicon().scan("north"), [('direct
下载地址
用户评论