未验证 提交 4dac1032 编写于 作者: X Xiaoyao Xi 提交者: GitHub

Merge pull request #76 from wangxiao1021/api

fix issue #75
...@@ -125,6 +125,7 @@ def decode_fake(nums, mask, bs): ...@@ -125,6 +125,7 @@ def decode_fake(nums, mask, bs):
n_f = len(mask) - n_t n_f = len(mask) - n_t
p1 = nums - (n_t-1) * bs p1 = nums - (n_t-1) * bs
each_f = p1 / (n_f+1) assert p1 % (n_f+1) == 0
each_f = p1 // (n_f+1)
return each_f * n_f return each_f * n_f
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册