
python
pandamax
好好学习,天天向上
展开
-
cv读取/保存中文路径/命名图片
img = cv2.imdecode(np.fromfile("测试.jpg" ,dtype=np.uint8), cv2.IMREAD_UNCHANGED) cv2.imencode('.jpg',mask)[1].tofile('测试.jpg'.)原创 2020-01-21 09:20:26 · 945 阅读 · 0 评论 -
python _、__和__xx__的区别
本文为译文,版权属于原作者,在此翻译为中文分享给大家。英文原文地址:Difference between _, __ and __xx__ in Python "_"单下划线 Python中不存在真正的私有方法。为了实现类似于c++中私有方法,可以在类的方法或属性前加一个“_”单下划线,意味着该方法或属性不应该去调用,它并不属于API。 在使用property时,经常出现这个问题转载 2017-10-24 09:43:29 · 260 阅读 · 0 评论 -
Key differences between Python 2.7.x and Python 3.x
Key differences between Python 2.7.x and Python 3.x转载 2018-04-16 21:35:07 · 219 阅读 · 0 评论 -
python argparse模块
python2 argparse python argparse转载 2018-04-25 09:47:23 · 322 阅读 · 0 评论