![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
sanitizer
吼吼
展开
-
Jupyter中分号用法
跟李沐学机器学习的笔记,image-classification-dataset.ipynb 中绘制分类图片的行结束后有分号 show_images(X.reshape(18, 28, 28), 2, 9, titles=get_fashion_mnist_labels(y)); 分号代表不输出show_images这个函数的返回值,等价于下一行敲一个pass。 jupyter中如果函数调用是最后一行的话会返回值打印出来,分号表示后面还有一行,就不会打印了。 ...原创 2022-05-11 21:11:48 · 341 阅读 · 0 评论 -
记录:python cv2窗口置顶
参考:https://cloud.tencent.com/developer/article/1711584 cap = cv2.VideoCapture(0, cv2.CAP_DSHOW) cap.set(cv2.CAP_PROP_FOURCC, cv2.VideoWriter_fourcc('M', 'J', 'P', 'G')) ret, frame = cap.read() cv2.imshow("capture",frame) shell = win32com.client.Dispatch(原创 2021-03-23 13:07:03 · 1681 阅读 · 0 评论