- 博客(20)
- 资源 (11)
- 收藏
- 关注
原创 在迷宫环境中使用图像目标导向深度强化学习笔记(一)
新一年新收获,预祝大家2020年工作顺利,身体健康。此部分作为一个节点,下面大部分时间用于期末复习,打算考完试再继续这一块的工作。之前接触过一部分这方面知识,当时感觉用到的机会不是很大,所以就没好好学,真的后悔了,对莫烦博客经过一个星期左右的学习就仓促的下手实践,对于很专业的知识我也不是有太深的理解,如果有错误,望大家积极指正批评。进入正题:这里我打算复现一下李飞飞老师指导的一位博...
2019-12-31 20:30:57 716
原创 截取屏幕指定位置大小并把数据处理成np.arr类型数据
我这里使用的截图是莫烦DQN迷宫环境的图像如下:截图是一个动态环境,但是这里出现了一个尴尬的问题先附上一下代码:import timeimport numpy as npimport pandas as pdimport tensorflow as tfimport numpyfrom skimage import io, transform # skimage模块下的i...
2019-12-29 21:30:30 215
原创 深度强化学习之三维数据hstack()叠加以后进行取值分离
import timeimport numpy as npimport pandas as pdimport tensorflow as tfimport numpymon = np.zeros((2000, 100,300,3))memory = np.zeros((100,100,3))memory1 = np.zeros((100,100,3))memory1[0][0][...
2019-12-29 20:04:20 357 1
原创 ubuntu升级pip后, ImportError: cannot import name ‘main‘
原因是升级以后,路径变了,导致出错。提示报错的是/usr/bin/pip,用which pip获取到的路径是~/.local/bin/pip Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import main I...
2019-12-26 22:11:52 144
原创 aise ImportError(str(msg) + ', please install the python3-tk package') ImportError: No module named
1. 进入超级管理员权限sudo su2. 安装apt-get install python3-tk但是:可能遇到ubuntu提示E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)解决办法:方法1:ps -e | grep apt 显示:11669 ? 00:00:02 ap...
2019-12-26 16:15:34 222
原创 sudo python下import caffe出错然而python下没有问题
打开命令行输入python导包import sys查看路径sys.path出现一串路径其中会出现一条这样的路径“/home/your name/caffe/python”第二:输入sudo python导包import sys查看路径sys.path出现一串路径并缺少上面关键一条路任意地方新建一个文件---lujing.pth打开文件,将缺少的路劲加进去...
2019-12-22 14:14:08 270
原创 安装TensorFlow时出现Cannot uninstall 'enum34'等问题
Cannot uninstall 'enum34'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.你需要卸载enum34输入以下命令即可:su...
2019-12-22 11:41:14 311
转载 基于ubuntu16.04安装python2 opencv与python3 opencv
Ubuntu 16.04: How to install OpenCVbyAdrian RosebrockonOctober 24, 2016inOpenCV,TutorialsOver the past two years running the PyImageSearch blog, I’ve authored two tutorials detailing the r...
2019-12-22 11:35:40 950
原创 smtp协议——邮件发送
根据自己使用的邮件服务器,完成smtp协议的服务开启 给特定邮箱发送图文并茂的邮件,邮件正文包含的表格如下所示,显示的图片自己确定。 给特定邮箱发送邮件,邮件附件为“实验报告7 smtp协议# -*- coding: utf-8 -*-"""Created on Wed Nov 6 15:57:44 2019@author: Administrator"""import ...
2019-12-21 20:41:19 1710
原创 http协议-数据提交
编写程序实现通过有道或百度翻译url对用户输入数据进行翻译: 进入有道翻译或者百度翻译页面,找出页面向服务器提交待翻译数据使用的url; 使用浏览器分析工具分析相关需要提交的数据字段以及值,主要包括:(1)待翻译词语或句子使用的字段数据;(2)待翻译数据使用的语言;(3)翻译结果使用的语言;(4)返回的翻译结果使用的数据类型;(5)其他需要的数据字段 获取使用requests库post方法提交数据...
2019-12-21 20:35:19 248
原创 http协议-数据请求
编写程序实现新闻网页数据的请求和获取数据的保存: 进入一个学校的新闻首页,分析各不同新闻网页url之间的区别和联系,并根据得到的规律通过程序生成所要请求的网页的url(前30个页面)。 使用requests库通过http协议的get方法向web server 请求30个页面的数据,要求:(1)30个请求分别由5个线程实现,每个线程负责6个url页面的请求;(2)每个线程中的不同页面请求的时间间隔是...
2019-12-21 20:32:08 333
原创 服务器架构
编写程序分别实现服务端和客户端要求功能 服务器能够使用TCP协议同时为多台客户端主机提供部分电影的演员信息查询服务(基于多线程或者异步通信): 服务端启动后,需先建立数据结构来存储从movieResult.csv文件中读入的电影数据,并建立socket对象监听客户端的TCP连接请求,如有请求便同意与客户端建立tcp连接 客户端运行时能够提示并接收用户输入的电影名称,并将电影名称数据传递给服务器(需...
2019-12-21 20:25:35 436
原创 网络数据与网络错误
服务器端和客户端IP:当前主机IP分析给定通信程序中的client端和server端代码,对出现的粘包问题进行简单描述并分析出现的原因设计一个方案解决通信中的粘包问题对client端和server端程序进行修改,并验证方案的正确性# -*- coding: utf-8 -*-"""Created on Sat Sep 28 15:03:38 2019@author: c...
2019-12-21 20:19:11 367
原创 文件传输
服务器端和客户端IP:当前主机IP(192.168.?.?)n服务器启动时默认端口为1060,当TCP连接建立后,等待接收客户端传输过来的sheet1.xlsx文件的数据内容,在服务器当前路径下建立sheet1.xlsx文件并写入接收到的文件内容,文件接收完成后在屏幕上输出”文件已接收完毕.”n客户端启动后使用TCP协议与服务端建立连接,连接建立后在屏幕上输出“与192.168.X.X主...
2019-12-21 12:50:49 277
原创 扫描主机端口状态
建立程序能够对本机的常用接口状态进行检测,并将扫描到的活动端口信息写入到scanResult.txt文件中常用的端口列表portLs=[21, 22, 23, 25, 80, 135, 137, 139, 445, 1433, 1502, 3306, 3389, 8080, 9015]# -*- coding: utf-8 -*-"""Created on Tue Aug 13 11...
2019-12-21 12:42:05 573
原创 UDP c/s结构通信
服务器端和客户端IP:当前主机IP(192.168.?.?) 服务器监听端口:服务器启动时默认侦听端口为1060,当客户端有udp数据传过来时,可以对数据进行解码(utf-8)并打印出客户端传输的字符串数据,同时给发送数据的客户端传输字符串数据“你好,我是服务器+(ip,port),有事情可以随时联系我!”客户端端口:系统随机选定(范围为10000-20000)。要求客户端启动后给服...
2019-12-21 12:38:03 464
原创 MFC文件载入失败
※尽量不适用中文,各种未知错误,嘿嘿此方法临时解决问题,可以使程序运行,后续是否还有错误是未知数需要修改3处位置:1.资源文件中.rc右键,点击“查看代码”,找到带中文的资源ID,把中文修改掉2.资源头文件中Resource.h找到带中文的资源ID,把中文修改掉3.DialogEx派生类的cpp文件中.cpp找到构造函数,将初始化列表中的中文改掉3处修改的...
2019-12-21 10:55:36 1114
原创 网络编程——基于TCP协议的远程图书查询和下载系统
目录结构:from tkinter import *import timeimport tkinterimport tkinter.messageboximport tkinter as tkimport datetimeimport socketfrom tkinter import filedialogADDR = ('127.0.0.1', 1060)sk =...
2019-12-20 23:20:58 268
原创 数据结构课程设计——鲁东大学
题目: 从下列6个题目中选择4个: (1)表达式求值问题:给定一个四则运算的中缀表达式、前缀表达式和后缀表达式,编程计算表达式的值。(2)看病排队候诊问题:根据病人的病情规定不同的优先级别。医生在诊断治疗时,选择优先级别高的病人进行诊治,如果遇到两个优先级别相同的病人,则选择优先来排队的病人进行诊治。 (3)计算哈夫曼树的WPL值:根据给定的n个权值(非负值...
2019-12-20 23:13:00 1482 1
原创 致命错误 RC1015: 无法打开包含文件 'afxres.h'.
最近做课程设计是出现了这个问题,以下提供解决方法确保自己的路径没有问题;如果路径没有问题的话,就是缺少文件链接:https://pan.baidu.com/s/19mZgcPiexREq1R72XnSVrA提取码:duai下载文件覆盖掉自己文件夹下边的文件,问题解决...
2019-12-20 20:52:17 323
python实验报告7 smtp协议.zip
2019-12-21
python网络编程之http协议-数据提交
2019-12-21
python网络编程之http协议-数据请求
2019-12-21
python网络编程之服务器架构
2019-12-21
python网络编程之网络数据与网络错误
2019-12-21
UDP c/s结构通信 扫描主机端口状态
2019-12-21
Library.zip
2019-12-20
cp201x资源启动程序
2018-05-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人