dreamlike-zzg

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  63 随笔 :: 0 文章 :: 0 评论 :: 7619 阅读

随笔分类 -  python

摘要:被赋值Mat之前已经被分配足够空间时,copyTo()不重新给分配空间,继续使用之前的空间,当已分配空间不足时,则会重新分配空间;clone()则均重新分配空间。 Mat M(1, 3, CV_8UC1, Scalar(1)); cout << "M... 阅读全文
posted @ 2022-11-05 16:00 梦幻济公 阅读(455) 评论(0) 推荐(0) 编辑

摘要:python 万物皆对象,数字也不例外 def fun(p): p = p # nothing be changed print("before:",id(p)) p += 1 # "2" be created print("afte... 阅读全文
posted @ 2022-11-05 15:59 梦幻济公 阅读(23) 评论(0) 推荐(0) 编辑

摘要:目录 Inter-Region Affinity Distillation for Road Marking Segmentation (2020.04) Learning Lightweight Lane Detection CNNs by Self Att... 阅读全文
posted @ 2022-11-05 15:59 梦幻济公 阅读(36) 评论(0) 推荐(0) 编辑

摘要:np.expand_dims(A, axis=0)np.argmax(E, axis=1) np.newaxis >> type(np.newaxis)NoneType>> np.newaxis == NoneTrue>> x = np.arange(3)>... 阅读全文
posted @ 2022-11-05 15:59 梦幻济公 阅读(15) 评论(0) 推荐(0) 编辑

摘要:csv import csvcsvFile = open("csvData.csv", "w") #创建csv文件writer = csv.writer(csvFile) #创建写的对象#先写入colum... 阅读全文
posted @ 2022-11-05 15:59 梦幻济公 阅读(15) 评论(0) 推荐(0) 编辑

摘要:http://muyaan.com/2018/10/25/%E7%94%9F%E6%88%90%E4%BA%8C%E7%BB%B4%E9%AB%98%E6%96%AF%E5%88%86%E5%B8%83%E7%83%AD%E5%8A%9B%E5%9B%BE/ ... 阅读全文
posted @ 2022-11-05 15:59 梦幻济公 阅读(164) 评论(0) 推荐(0) 编辑

摘要:排序 s = 'aaabbc'set(s)# {'a', 'b', 'c'}sorted((s.count(x), x) for x in set(s))# [(1, 'c'), (2, 'b'), (3, 'a')]# 排序后索引>>> lis = [1,... 阅读全文
posted @ 2022-11-05 15:59 梦幻济公 阅读(20) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示