深度学习时,把有些".JPG"后缀的修改成".jpg" import os jpgs_dir = "./JPEGImages" for jpg_name in os.listdir(jpgs_dir): portion = os.path.splitext(jpg_name) if portion[ ...
分类:
编程语言 时间:
2020-04-15 12:24:22
阅读次数:
374
因为两种显卡,amd和nvidia,所以按照parrot官方文档安装驱动,结果可想而知,安装失败~~~ 内心万马奔腾,去国外论坛也发现很多求助的小伙伴,所以有了我这次随笔,如何恢复你的parrot 黑屏按Alt+ctrl+F1进入终端,输入root密码 执行,移除nvidia apt-get --p ...
分类:
其他好文 时间:
2020-04-14 22:41:52
阅读次数:
83
创建目录: 1 import os 2 os.makedirs('tmp/python/fileop', exist_ok=True) 会在当前目录下递归创建 tmp/python/fileop 目录,exist_ok=True 指定了,如果某个要创建的目录已经存在,也不会报错 删除目录或文件: 1 ...
分类:
其他好文 时间:
2020-04-14 18:59:05
阅读次数:
80
import tensorflow as tf import os from matplotlib import pyplot as plt import numpy as np from sklearn.utils import shuffle import skimage.io as io de ...
分类:
其他好文 时间:
2020-04-14 16:46:38
阅读次数:
58
1.首先备份原来的cent os官方yum源 cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 2.获取阿里的yum源覆盖本地官方yum源 wget -O /etc/yum.repos.d/CentO ...
分类:
其他好文 时间:
2020-04-14 15:15:20
阅读次数:
126
邮箱首发 import os,sys import smtplib os.environ.setdefault("DJANGO_SETTINGS_MODULE", "server.settings") from django.core.management import execute_from_c ...
分类:
编程语言 时间:
2020-04-14 14:07:01
阅读次数:
80
我的物理机情况: cpu:AMD os:win10 VirtualBox版本6.1.0 一、启动虚拟机报错:AMD-V is not available 安装VirtualBox很容易,但是启动Ubuntu虚拟机报错:AMD-V is not available (VERR_SVM_NO_SVM) ...
1 ############ server端 2 3 import selectors,socket,time,pickle,os,struct 4 ip_port = ('192.168.43.182',8080) 5 buffer_size = 1024 6 back_log = 5 7 BAS ...
分类:
Web程序 时间:
2020-04-14 00:33:35
阅读次数:
86
将之前用go写的代码改为python,这种应用还是用python方便 #coding=utf8 import os,re,time,logging import pyautogui from apscheduler.schedulers.background import BackgroundSch ...
分类:
移动开发 时间:
2020-04-13 19:53:39
阅读次数:
124
获取数据 adb shell "dumpsys meminfo | grep com.example.shineapp" import os import time import csv #控制类 class Controller(object): def __init__(self,count): ...
分类:
移动开发 时间:
2020-04-13 14:09:55
阅读次数:
100