自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (11)
  • 收藏
  • 关注

转载 数据结构课程设计----表达式求值

表达式求值问题         给定一个四则运算的中缀表达式,编程计算表达式的值。基本要求:    (1)在给定的表达式中要包含括号;    (2)栈的操作要求自己完成,不允许调用类库中的方法;    (3)对不同的操作编写相应的函数。测试数据要求:         给定测表达式(字符串)中的数字字符要有包含两位以上的数字字符。/*********************...

2018-12-21 10:46:04 2557 1

翻译 数据结构课程设计----哈夫曼树设计

计算哈夫曼树的WPL值     根据给定的n个权值(非负值),计算所构造哈夫曼树的WPL值。基本要求:    (1)根据给定的数据,建立哈夫曼树;      (2)输出每个叶子结点的带权路径长度;      (3)输出哈夫曼树的WPL值。测试数据要求:         输入的n个权值之和应为100,且不允许有负值。  #include <stdio.h>#i...

2018-12-21 10:25:38 2986 1

转载 数据结构课程设计----车牌查询问题

汽车牌照的快速查询    对一组汽车牌照进行排序和查找。 基本要求:    (1)利用排序算法对汽车牌照进行排序;    (2)采用折半查找思想完成查找。测试数据要求:     测试的数据不得少于50个,不得有重复的牌照。车牌号中可以是数字和字符的组合,车牌号可以人工输入,也可以自动生成。  #include<stdio.h>#include<stdlib.h...

2018-12-21 10:04:37 1074

翻译 数据结构课程设计----哈希表设计

哈希表的应用      基本要求:    根据给定的一组整数,建立哈希表。1)设计哈希函数;      2)分别采用线性探测再散列法和链地址法解决冲突;       3)对哈希表进行查找,输出查找成功和不成功的信息。测试数据要求:         建立哈希表时输入的数据可以有相同的值。/*设计哈希表 根据给定的一组整数,建立哈希表。 基本要求: (1)设...

2018-12-21 09:20:15 3622

原创 深度学习(一)

感知机:由美国学者提出,感知机是神经网络的起源算法。因此学习感知机的构造也是一门重要的思想。感知机是什么?感知机接收多个信号,输出一个信号。 本图为2个输入的感知机模型。这里对应的w为权值,每个信号都有对应的权重。权重越大,对应的信号的重要性越高。权重相当于电流里所说的电阻。电阻是决定电流流动难度的参数,电阻越低,通过的电流就越大。这里与感知机权重同理。感知机中实现...

2018-12-20 10:55:57 280

转载 深度学习代码分享

链接:https://pan.baidu.com/s/1kIcpduZSw36lXTSGg9zSmg 提取码:z556  

2018-12-20 08:03:37 240

原创 深度学习开篇

作为一个本科生,晚上闲来没事,学一门技术,博客就当学习笔记了,有什么不对的地方希望大家给予宝贵的意见。本次笔记是给予深度学习入门--基于Python的理论与实现科幻电影已经变成了现实,需要我们去学习最先进的知识。我们将使用Python实现深度学习系统。但是我们要掌握一些最简单的基本知识:Python  NumPy   Matplotlib等知识在科学领域,特别是在机器学习、数据科学...

2018-12-17 22:59:43 463

时钟,指南针,水平仪表盘

时钟,指南针,水平仪表盘

2022-04-13

数据结构第一章重要代码.zip

顺序表的删除插入合并算法

2020-08-19

python实验报告7 smtp协议.zip

根据自己使用的邮件服务器,完成smtp协议的服务开启 给特定邮箱发送图文并茂的邮件,邮件正文包含的表格如下所示,显示的图片自己确定。 给特定邮箱发送邮件,邮件附件为“实验报告7 smtp协议

2019-12-21

python网络编程之http协议-数据提交

编写程序实现通过有道或百度翻译url对用户输入数据进行翻译: 进入有道翻译或者百度翻译页面,找出页面向服务器提交待翻译数据使用的url; 使用浏览器分析工具分析相关需要提交的数据字段以及值,主要包括:(1)待翻译词语或句子使用的字段数据;(2)待翻译数据使用的语言;(3)翻译结果使用的语言;(4)返回的翻译结果使用的数据类型;(5)其他需要的数据字段 获取使用requests库post方法提交数据所需其他数据,如headers中使用的数据信息(如User-Agent,cookies等) 实现完整的程序,并运行程序,对输入的待翻译的内容的返回结果进行验证;如果出现返回为空值等问题,请对可能的原因进行分析,并给出可行的解决方案。

2019-12-21

python网络编程之http协议-数据请求

编写程序实现新闻网页数据的请求和获取数据的保存: 进入一个学校的新闻首页,分析各不同新闻网页url之间的区别和联系,并根据得到的规律通过程序生成所要请求的网页的url(前30个页面)。 使用requests库通过http协议的get方法向web server 请求30个页面的数据,要求:(1)30个请求分别由5个线程实现,每个线程负责6个url页面的请求;(2)每个线程中的不同页面请求的时间间隔是3秒;(3)当线程中成功获取某一个新闻网页数据后,需要在屏幕上输出相应的状态信息(如。。。网页请求成功) 对于每个获取的网页数据,分别将其写入到本地相应的html文件中,要求本地网页数据文件的文件名为pageXXX(XXX为请求页面的编号) 对生成的文件进行验证,如果出现中文乱码的问题,请对可能的原因进行分析,并给出可行的解决方案。

2019-12-21

python网络编程之服务器架构

编写程序分别实现服务端和客户端要求功能 服务器能够使用TCP协议同时为多台客户端主机提供部分电影的演员信息查询服务(基于多线程或者异步通信): 服务端启动后,需先建立数据结构来存储从movieResult.csv文件中读入的电影数据,并建立socket对象监听客户端的TCP连接请求,如有请求便同意与客户端建立tcp连接 客户端运行时能够提示并接收用户输入的电影名称,并将电影名称数据传递给服务器(需与服务器建立tcp连接) 服务器接收到客户端传递的电影名称后,查询读入的电影数据,如果没有该电影的演员信息则返回没有该电影数据!,如果有该电影的演员信息则返回该电影的主演信息 客户端接收到返回的查询结果后在屏幕上输出相应的结果 服务器为同一客户端提供连续查询服务的时间间隔为5秒

2019-12-21

python网络编程之网络数据与网络错误

服务器端和客户端IP:当前主机IP 分析给定通信程序中的client端和server端代码,对出现的粘包问题进行简单描述并分析出现的原因 设计一个方案解决通信中的粘包问题 对client端和server端程序进行修改,并验证方案的正确性

2019-12-21

UDP c/s结构通信 扫描主机端口状态

UDP c/s结构通信 服务器端和客户端IP:当前主机IP(192.168.?.?) 服务器监听端口:服务器启动时默认侦听端口为1060,当客户端有udp数据传过来时,可以对数据进行解码(utf-8)并打印出客户端传输的字符串数据,同时给发送数据的客户端传输字符串数据“你好,我是服务器+(ip,port),有事情可以随时联系我!” 客户端端口:系统随机选定(范围为10000-20000)。 要求客户端启动后给服务器发送一个字符串数据“服务器你好,我是客户端+(ip,port)”,发送完数据后客户端便处于等待服务器端使用udp协议回复信息状态,接收到回复信息后,在屏幕上输出解码后的数据。 扫描主机端口状态 建立程序能够对本机的常用接口状态进行检测,并将扫描到的活动端口信息写入到scanResult.txt文件中 常用的端口列表portLs=[21, 22, 23, 25, 80, 135, 137, 139, 445, 1433, 1502, 3306, 3389, 8080, 9015]

2019-12-21

Library.zip

以下提供数据库建立文件 /* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 80013 Source Host : localhost:3306 Source Database : db_books Target Server Type : MYSQL Target Server Version : 80013 File Encoding : 65001 Date: 2018-12-21 12:55:28 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for tb_books- -- ---------------------------- DROP TABLE IF EXISTS `tb_books`; CREATE TABLE `tb_books` ( `ID` int(255) unsigned NOT NULL AUTO_INCREMENT, `ISBN` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `book_name` varchar(255) DEFAULT NULL, `book_price` decimal(10,2) DEFAULT NULL, `book_author` varchar(255) DEFAULT NULL, `published_house` varchar(255) DEFAULT NULL, `book_category` varchar(255) DEFAULT NULL, `borrower_name` varchar(255) DEFAULT NULL, `borrower_phone` varchar(255) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; -- ---------------------------- -- Records of tb_books -- ---------------------------- INSERT INTO `tb_books` VALUES ('1', '978-7-100-10618-4', 'Othello', '56.00', 'W. William Shakespeare', 'Shanghai World Book Publishing Company', 'G792', 'Mark', '13503383632'); INSERT INTO `tb_books` VALUES ('2', '978-7-111-29544-0', 'BBC Doctor Who: 12 Doctors, 12 Stories ,12 Postcards', '69.00', ' BBC', ' BBC', 'TP312', 'Mark', '13503383632'); INSERT INTO `tb_books` VALUES ('3', '978-7-115-21687-8', 'The Poetry of Pablo Neruda', '59.00', 'Pablo Neruda,Ilan Stavans,Firuz Kazemzadeh', ' FSG BOOKS', 'TP311.5', null, null); INSERT INTO `tb_books` VALUES ('5', '978-7-300-11134-6', 'Cereal City Guide PARIS CITY GUIDE', '59.00', 'Rich Stapleton', ' Cereal Magazine', 'F830', null, null); INSERT INTO `tb_books` VALUES ('6', '978-7-302-23755-6', 'Cereal City Guide Copenhagen CITY GUIDE', '36.00', ' Rich Stapleton', ' Cereal Magazine', 'TP312', null, null); INSERT INTO `tb_books` VALUES ('7', '978-7-302-27544-2', 'George W. Bush And the Southern Takeover of American Politics', '29.00', 'Michael Lind', 'New America Books', 'TP312', null, null); INSERT INTO `tb_books` VALUES ('8', '978-7-302-29391-0', 'How Liberals Hurt Those They Claim to Help', '34.50', 'Mona Charen', ' Sentinel', 'TP393.0', 'Mark', '13503383632'); INSERT INTO `tb_books` VALUES ('9', '978-7-5117-0157-2', 'Lincoln in the Bardo', '16.00', 'George Saunders', 'Bloomsbury Publishing PLC','I', null, null); INSERT INTO `tb_books` VALUES ('10', '978-7-5327-5110-5', 'A Song of Ice and Fire Box Set', '58.00', 'George R. R. Martin',' HarperCollins UK','I', null, null); INSERT INTO `tb_books` VALUES ('11', '978-7-5399-3321-4', 'The New World Champion Paper Airplane Book','28.50', 'John M. Collins',' Ten Speed Press', 'I207.23', null, null); INSERT INTO `tb_books` VALUES ('23', '978-7-5399-5488-2', 'Introduction to Linear Algebra', '34.00', 'Gilbert Strang', ' Wellesley College', 'I', null, null); -- ---------------------------- -- Table structure for tb_user -- ---------------------------- DROP TABLE IF EXISTS `tb_user`; CREATE TABLE `tb_user` ( `id` int(255) unsigned NOT NULL AUTO_INCREMENT, `user` varchar(255) DEFAULT NULL, `passwd` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; -- ---------------------------- -- Records of tb_user -- ---------------------------- INSERT INTO `tb_user` VALUES ('1', 'root', 'root');

2019-12-20

cp201x资源启动程序

Install driver for USB-UART bridge converter on Linux Ubuntu12.04 Ubuntu下USB转串口芯片驱动程序安装,支持cp210x,pl2303等 Reference: Fixing the cp210x open - Unable to enable UART Error When you plugin your USB-UART converter, and run "> ls /dev/tty*", if you don't see the /dev/ttyUSB0 (or similar), your Linux does not detect your USB-UART device. We need to install the driver for your device. Here we use Ubuntu12.04, and Updated the source to 3.2.0 version. If there is difference about version Number from your OS platform, please try to modify it into yours. 1.Download the Linux Source Code Open a terminal and execute the following commands. Note that your version of Linux may differ slightly -- adjust accordingly. $ cd ~ $ sudo apt-get install build-essential linux-source $ cp /usr/src/linux-source-3.2.0.tar.bz2 . $ bunzip2 linux-source-3.2.0.tar.bz2 $ tar xf linux-source-3.2.0.tar $ cd ~/linux-source-3.2.0 2.Recompile and Reinstall the cp210x Driver From within a terminal, execute: $ cd ~/linux-source-3.2.0 $ make oldconfig $ make prepare $ make scripts $ cp /usr/src/linux-headers-3.2.0-34-generic-pae/Module.symvers . Here, I have the "3.2.0-29" version also, I launched the command above, but not the below: "cp /usr/src/linux-headers-3.2.0-29-generic-pae/Module.symvers ." Recompile and Reinstall the cp210x Driver Here, We can actually install many kinds of USB-UART converter drivers. We take cp210x as the example. From within a terminal, execute: $ make M=drivers/usb/serial $ sudo mv /lib/modules/$(uname -r)/kernel/drivers/usb/serial/cp210x.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/cp210x.ko.old $ sudo cp drivers/usb/serial/cp210x.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/ $ sudo modprobe -r cp210x $ sudo modprobe cp210x Reboot Linux system. Run Terminal: $ ls /dev/tty* The we can see the device is detected by Linux Host OS: 【技术】Ubuntu下USB转串口芯片驱动程序安装cp210x,pl2303 Reference: http://pharos.ece.utexas.edu/wiki/index.php/Fixing_the_cp210x_open_-_Unable_to_enable_UART_Error_-_04/17/2011 Then, We can configure the minicom to communicate with our target board. ====================================================== Here is an example of configure the parameters of minicom for TLL6527M PAL board: I just copied it here hardly without any font editing. Sorry about that. Serial Communications from Host-PC to TLL6527M Target Hardware The TLL System Design Environment (SDE) running on the host PC comes pre-configured with the required settings for serial-UART communications between the host PC and the TLL6527M base module. Generally, for use with TLL6527M the settings need not to be changed (Note: From the SDE OS version 0.3.2, the serial terminal program Minicom is set to open /dev/ttyUSB0 with the needed configuration as mentioned above.). To start serial communication from host to the TLL6527M, open the serial communication terminal program Minicom. Just open a terminal window on your Linux SDE running on the host PC and type the command "minicom" at the command prompt on your host PC terminal console. The TLL6527M on power-up is set by default to the following serial-UART communication settings: Bits per second = 115200 Data bits = 8 Parity = None Stop Bits = 1 Flow control = None Make sure that the TLL6527M's USB-UART port has been mapped to a ttyUSBx device node in the /dev folder on the host PC SDE. See following example: 【技术】Ubuntu下USB转串口芯片驱动程序安装cp210x,pl2303 Now make sure that this "ttyUSBx" is set as the destination port, baud rate is 115200, and 8N1 mode for minicom, by running the command 'minicom -s'. Note that running the "minicom -s" command as a normal user will only apply the settings for the current session. In order to make the settings permanent, these commands need to be run with root privileges.See example below: 【技术】Ubuntu下USB转串口芯片驱动程序安装cp210x,pl2303 The following window will appear on your host PC terminal window: 【技术】Ubuntu下USB转串口芯片驱动程序安装cp210x,pl2303 Go to ‘Serial port setup’, following screen will appear, make sure that serial device is set to ‘/dev/ttyUSB0’ and bps/par/bits is set to 115200 8N1: 【技术】Ubuntu下USB转串口芯片驱动程序安装cp210x,pl2303 Now go back to the main menu and choose ‘save setup as dfl’. This will save the configuration settings and from next time onwards user can directly run ‘minicom’ command without the option ‘–s’ and it will load settings from the saved file. 【技术】Ubuntu下USB转串口芯片驱动程序安装cp210x,pl2303 RESET the target by using the SDE's TLL6527M reset utility or by pressing the RESET button on the target. Following messages will be displayed on the terminal. By default, U-Boot is setup to automatically start booting the OS after waiting for a few seconds for the user to interrupt the automatic launch by pressing any key. So to stop U-Boot from loading uClinux and provide U-Boot command prompt, just hit any key. (This is assuming TLL6527M is flashed with u-boot and uClinux. TLL6527Ms are pre-flashed with firmware before shipping).

2018-05-20

c++学习

C++学习 实验题目

2018-05-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除