摘要: 1.写文件 f = open('out.txt','w') f.write('%s %d %d %d %d 0 0 0 0 0 0 0'%(bbx.name,bbx.x,bbx.y,bbx.w,bbx.h)) f.close() 2.读文件 第一种 f = open("foo.txt") # 返回一 阅读全文
posted @ 2016-08-12 23:24 Shiyu_Huang 阅读(260) 评论(0) 推荐(0)
摘要: link:http://www.mobileway.net/2015/02/14/install-opencv-for-python-on-mac-os-x/ 阅读全文
posted @ 2016-08-12 11:56 Shiyu_Huang 阅读(374) 评论(0) 推荐(0)
摘要: 1. brew install python 2.If you don't have ~/.bash_profile, add ~/.bash_profile by touch ~/.bash_profile 3.Add below text to ~/.bash_profile # Homebre 阅读全文
posted @ 2016-08-12 11:54 Shiyu_Huang 阅读(4548) 评论(0) 推荐(0)