![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
其他
-烂笔头-
这个作者很懒,什么都没留下…
展开
-
matplotlib绘制多个动态子图
import os import cv2 import pytz import numpy as np from tqdm import tqdm import matplotlib.pyplot as plt from matplotlib import animation from matplotlib.gridspec import GridSpec from datetime import datetime # (200,125) ,(300,185) def ave_area(arrays, l.原创 2021-09-15 10:34:06 · 543 阅读 · 0 评论 -
常见问题记录
1、磁盘自动挂载 1)查看磁盘分区 fdisk -l 2)新建挂载文件夹 mkdir /data 3)/etc/fstab末尾添加一行 /dev/sda1 /data ntfs defaults,nofail 0 0 2、开发板时间校准 在系统启动时从RTC读出硬件时间(hwclock命令查看)并设置到系统时间(date命令查看),即可解决开发板时间不准的问题。 /etc/init.d/...原创 2021-08-12 16:36:48 · 298 阅读 · 0 评论 -
python并行计算
1、多线程 from threading import Thread class MyThread(Thread): def run(self): function_name(self.parameters) def __init__(self, parameters): Thread.__init__(self) self.parameters = parameters def multi_threads(parameters, t原创 2021-05-08 15:08:12 · 149 阅读 · 0 评论 -
logging日志记录模板
import logging from logging import handlers # 定义日志文件格式 class Logger(object): level_relations = { 'debug': logging.DEBUG, 'info': logging.INFO, 'warning': logging.WARNING, 'error': logging.ERROR, 'crit': logging.原创 2021-03-26 11:24:31 · 256 阅读 · 0 评论