摘要: import numpy as np a = np.array([ [1,2,3], [4,5,6], [7,8,9] ]) b = np.zeros(3) c = np.ones(3) d = np.empty(3)print(a.ndim)print(a.shape)print(a.size) 阅读全文
posted @ 2021-03-11 17:24 SungJY 阅读(210) 评论(0) 推荐(0)
摘要: conda list 查看已安装包 conda env list 查看已有环境 或者conda info --envs 有*的是正在运行的。 conda --version 查询版本 conda create -n your_env_name python=X.X 创建新的环境,文件位于安装目录en 阅读全文
posted @ 2021-03-08 23:22 SungJY 阅读(56) 评论(0) 推荐(0)
摘要: 前景:在mac上使用Parallels Desktop虚拟机模拟ubuntu,但是这次装的Ubuntu无法正常安装Parallels tools,导致文件系统完全被分隔开,就想用sftp传输文件,不过要先打开Ubuntu的ssh服务。 1.安装openssh-server。sudo apt inst 阅读全文
posted @ 2021-03-08 23:05 SungJY 阅读(651) 评论(0) 推荐(0)
摘要: 1.使用ctrl+alt+Fx切换终端。 2.切换到字符界面,如tty4,登录。 3.ps -t ttyx 查看图形界面所在终端的进程,Xorg进程为图形进程,结束它。 3. kill -9 进程号。 ps:1.系统不一样图形界面所在的虚拟终端不同,视自己情况而定。 2.不要直接断电或结束虚拟机进程 阅读全文
posted @ 2021-03-08 22:55 SungJY 阅读(1709) 评论(0) 推荐(0)
摘要: 包括多个子文件时: add_subdirectory(sublibrary1) add_subdirectory(sublibrary2) add_subdirectory(subbinary)添加子目录会创建name_SOURCE_DIR,name_BINARY_DIR的引用路径。如果有一个库被创 阅读全文
posted @ 2021-03-04 20:55 SungJY 阅读(178) 评论(0) 推荐(0)
摘要: cmake_minimum_required(VERSION3.4)project(hello_cmake)add_executable(hello_cmake main.cpp) set(sources src/Hello.cpp src/main.cpp)多个源文件可用此方法。add_execu 阅读全文
posted @ 2021-03-04 19:06 SungJY 阅读(174) 评论(0) 推荐(0)
摘要: \documentclass[option]{class}eg.\documentclass[11pt,twoside,a4paper]{article} Book:\part{}, \chapter{}, \section{}, \subsection{}, \subsubsection{}, \ 阅读全文
posted @ 2021-03-01 23:03 SungJY 阅读(211) 评论(0) 推荐(0)
摘要: 前言: 系统为mac OS High Sierra (10.13), 原本计划使用TexStudio作为编辑器,但是下载网站(http://texstudio.sourceforge.net/)提示TexStudio安装包适用于10.13以上系统,低版本系统需要从源文件构建或使用Homebrew安装 阅读全文
posted @ 2021-03-01 22:59 SungJY 阅读(1641) 评论(0) 推荐(0)
摘要: 1 SET(CMAKE_BUILD_TYPE "Debug") 2 SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb") 3 SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -W 阅读全文
posted @ 2021-03-01 09:09 SungJY 阅读(1551) 评论(0) 推荐(0)
摘要: ps:由于需要使用opencv中的VideoCapture通过rtsp协议调用摄像头,需要在安装过程中同时安装ffmpeg,否则不能调用。且ffmpeg安装必须在opencv之前,在已经安装了opencv的情况下,再安装ffmpeg,之后重新安装opencv,安装检测还是识别不到ffmpeg的组件, 阅读全文
posted @ 2021-02-28 16:53 SungJY 阅读(313) 评论(0) 推荐(0)