
python
CV_2013
这个作者很懒,什么都没留下…
展开
-
UnicodeEncodeError ‘ascii’ codec can’t encode characters in position ordinal not in range(128)
https://unix.stackexchange.com/questions/399556/how-to-avoid-having-to-export-lc-all-zh-cn-utf-8-upon-each-ssh-connection You are missing theexportin your~/.bashrc. export LC_ALL=zh_CN.UTF-8 W...转载 2019-07-24 20:37:23 · 351 阅读 · 0 评论 -
0-1 knapsack dynamic programming by Python
import os,sys class knapsack01_dp: def __init__(self, w, v, C): self.w =w self.v = v self.C = C def solve(self): assert len(self.w) == len(self.v) if...原创 2019-08-30 00:58:27 · 256 阅读 · 0 评论