- 博客(20)
- 资源 (3)
- 收藏
- 关注
原创 Ubuntu1804解决安装APP报错问题
遇到 "E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)" 这个错误通常意味着有另一个进程正在使用APT系统(Ubuntu的包管理器),或者之前的APT操作异常终止导致锁文件没有被正确释放。如果确认没有其他APT进程在运行,可能是之前的APT操作异常中断导致锁文件未被释放。以上步骤通常能够解决因为APT锁文件导致的问题。- 如果上述方法都不能解决问题,重启电脑也是一个简单有效的方法,因为重启会清除所有锁文件和正在运行的进程。
2024-03-03 09:50:56
305
原创 在线将图片中的表格转换为Excel
图片转文字 - 图片转Excel表格 - PDF转Word - 白描网页版图片转文字 - 图片转Excel表格 - PDF转Word - 白描网页版
2023-07-29 21:17:53
253
原创 C++ MFC CFile类 二进制文件读写
// 创建、写入方式打开文件CFile file;file.Open("C://TestFile.txt", CFile::modeWrite | CFile::modeCreate);// 写入文件memset(WriteBuf, 'a', sizeof(WriteBuf));file.Write(WriteBuf, sizeof(WriteBuf));// 关闭文件file.Close();// 只读方式打开文件file.Open("C://TestFile.txt", CFile:.
2022-04-14 20:20:03
3193
原创 C++中对字节进行位操作,特定位,设置为1或者0
#include<iostream>#include<bitset>using namespace std;int main(){ int a,b,c; unsigned char d; a = 0x51; cout<<"a的二进制"<<bitset<sizeof(a)*2>(a)<<endl; a |= 0x80; cout<<"a的二进制 最高位,置为1:.
2021-06-22 12:52:45
2115
原创 Pip安装临时更换国内安装源_笔记
pip国内的一些镜像 阿里云https://mirrors.aliyun.com/pypi/simple/ 中国科技大学https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban)http://pypi.douban.com/simple/ 清华大学https://pypi.tuna.tsinghua.edu.cn/simp...
2020-04-21 21:38:25
428
原创 剑指offer 剪绳子 python实现
题目:题目:给你一根长度为n的绳子,请把绳子剪成m段 (m和n都是整数,n>1并且m>1)每段绳子的长度记为k[0],k[1],…,k[m].请问k[0]k[1]…*k[m]可能的最大乘积是多少?例如,当绳子的长度为8时,我们把它剪成长度分别为2,3,3的三段,此时得到的最大乘积是18.第一种解法,时间复杂度为O(n2);空间复杂度O(n)# 一根长度为n的木...
2019-08-16 22:07:09
458
原创 求最大点集 python实现 今日头条第一次笔试2018
P为给定的二维平面整数点集。定义 P 中某点x,如果x满足 P 中任意点都不在 x 的右上方区域内(横纵坐标都大于x),则称其为“最大的”。求出所有“最大的”点的集合。(所有点的横坐标和纵坐标都不重复, 坐标轴范围在[0, 1e9) 内)如下图:实心点为满足条件的点的集合。请实现代码找到集合 P 中的所有 ”最大“ 点的集合并输出。#coding=utf-8import sys...
2019-08-11 16:37:51
528
2
原创 LeetCode700 二叉树中的搜索 python3
# Definition for a binary tree node.# class TreeNode:# def __init__(self, x):# self.val = x# self.left = None# self.right = Noneclass Solution: def searchBST(se...
2019-02-25 20:26:42
175
原创 LeetCode876 链表的中间结点 python3
# Definition for singly-linked list.# class ListNode:# def __init__(self, x):# self.val = x# self.next = Noneclass Solution: def middleNode(self, head: 'ListNode') ->...
2019-02-25 20:10:46
145
原创 LeetCode590 N叉树的后序遍历 Python3
"""# Definition for a Node.class Node: def __init__(self, val, children): self.val = val self.children = children"""class Solution: def postorder(self, root: 'Node') ->...
2019-02-24 15:58:47
209
原创 LeetCode867 转置矩阵 Python3
class Solution: def transpose(self, A: 'List[List[int]]') -> 'List[List[int]]': return [list(i) for i in zip(*A)]
2019-02-24 15:15:20
138
原创 LeetCode908 最小差值I Python
class Solution: def smallestRangeI(self, A: 'List[int]', K: 'int') -> 'int': res = max(A) - min(A) - 2*K if res < 0 : return 0 else: return re...
2019-02-23 09:58:01
176
原创 LeetCode929 独特的电子邮件地址
class Solution: def numUniqueEmails(self, emails: 'List[str]') -> 'int': res = set() for email in emails: local, domain = email.split('@')[0],email.split('@')[1] ...
2019-02-22 16:20:13
251
原创 解决最近Ubuntu环境下Sublime Text3无法使用Package Control的问题
最近因为更换电脑的原因,重做了ubuntu系统,重新安装了Sublime Text3176软件,并使用该软件配置相应的插件,但不知为什么软件安装成功后无法使用Package Control安装相应的插件,查了好久,终于找到了相应的解决方案,在这里与大家分享参考一下。安装Sublime Text3176后点击Package Control,几十秒后就看到下面的框框:There are no pa...
2019-01-13 21:47:35
1027
1
转载 单目相机姿态解算转载
https://blog.youkuaiyun.com/healingwounds/article/details/78678493
2019-01-03 21:41:09
359
原创 基于OpenCV和Python的计算机视觉学习笔记
机器人手眼标定非常有用网址记录:https://blog.youkuaiyun.com/yaked/article/details/77161160 ROS官方机械臂手眼标定教程http://wiki.ros.org/visp_hand2eye_calibration?distro=lunar...
2018-12-25 09:53:40
305
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人