自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 资源 (4)
  • 收藏
  • 关注

原创 西门子PLC200连接电脑出现“未找到指定的访问点”

问题描述:电脑上安装了博图16,smart200与200的编程软件,出现如上问题。解决办法:这是由于win10系统中需要先安装200,再安装smart200,两者才可以正常使用。此时需要卸载smart200与200软件,然后先安装200软件再安装smart200软件,这样软件才可以正常使用。...

2022-05-28 17:43:36 13031

原创 TIA16连接PLC1200或1214连接不上“无法从设备上传所选对象”

把网络设置中的IPV4网络设置自动获取IP更改为手动获取IP如图所示

2022-05-28 17:37:21 3910

原创 PyQt5 弹窗

import sysfrom PyQt5.QtWidgets import *from PyQt5.QtCore import *class SecondWindow(QWidget): def __init__(self, parent=None): super(SecondWindow, self).__init__(parent) self...

2020-02-08 10:59:17 1161

原创 python 内存泄漏定位

问题初步定位import tracemalloctracemalloc.start()''' 运行代码段'''snapshot = tracemalloc.take_snapshot()top_stats = snapshots.statistics("lineno")print("[top 10]")for stat in top_ stats[:10...

2019-12-21 15:34:56 1170 3

转载 matplotlib更舒服的subplots姿势

1. figure和axesfigure是作图的画布 : matplotlib.figure.Figure 你可以在figure上面铺展axes, 事实上, 你画的图其实都是画在axes上的 : matplotlib.pyplot.axes以下展示一下两者关系:plt.figure(facecolor='cyan');plt.gcf().subplots(2,2);...

2019-12-12 17:08:04 517

原创 实时动态扫描数据流

import datetimeimport numpy as npfrom matplotlib import pyplot as pltimport matplotlib.dates as mdatesplt.rcParams["font.sans-serif"]=['SimHei']hour = 10step = 60second = int(float(hour)*60*60...

2019-12-11 00:32:15 322 3

转载 用栈的方式实现迷宫路径寻找

maze = [ [1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 1, 0, 0, 0, 1, 0, 1], [1, 0, 0, 1, 0, 0, 0, 1, 0, 1], [1, 0, 0, 0, 0, 1, 1, 0, 0, 1], [1, 0, 1, 1, 1, 0, 0, 0, 0, 1], [1, 0,...

2018-08-11 17:38:57 868

原创 python 随机快速排序法

import random def quicksort(arr,firstIndex, lastIndex):    if firstIndex<lastIndex:        divIndex=random_partition(arr,firstIndex, lastIndex)        #print(divIndex)        quicksort(arr,fi...

2018-08-11 11:24:54 2140

原创 从Lenet 到incepetion-resnet v2

LenetLeNet 交替使用卷积层和最大池化层后接全连接层来进行图片分类。 相邻两个卷积层之间包含了一个2*2的maxpooling层 AlexnetAlextNet 与 LeNet 的设计理念非常相似。但也有非常显著的区别。与相对较小的 LeNet 相比,AlexNet 包含 8 层变换,其中有五层卷积和两层全连接隐含层,以及一个输出层。 将 sigmoid 激活...

2018-08-02 22:02:26 693

原创 在keras2.1.5下TypeError: unsupported operand type(s) for /=: 'JpegImageFile' and 'float'怎么解决

在fine-tune incepetion_V3模型时会报如上错误from keras.preprocessing.image import img_to_array, array_to_imgfrom keras.applications.inception_v3  import InceptionV3, preprocess_inputtrain_datagen =  ImageDataGen...

2018-07-15 22:56:19 4017

原创 免费下载 Graphviz 2.38

http://www.softpedia.com/dyn-postdownload.php/a338a4f848658e9aa4711a778f4ee4f0/5ab4c732/1e6eb/4/1

2018-03-23 16:25:58 14728 9

原创 小批量梯度下降算法 python

# -*- coding: utf-8 -*-"""Created on Tue Mar 13 20:49:03 2018@author: """import numpy as npfrom scipy import statsimport matplotlib.pyplot as plt##产生训练数据,生成模型为2*x+5+random.randint(50)x=np.a...

2018-03-13 21:24:53 1168

原创 随机梯度算法 python

import numpy as npfrom scipy import statsimport matplotlib.pyplot as plt##产生训练数据x=np.arange(0.,10.,0.2)m=len(x)x0=np.full(m,1.0)input_data=np.vstack([x0,x]).Ttarget_data=2*input_data[:,1]+5*i...

2018-03-13 21:17:26 500

原创 Matlab 文档合并与字母,数字拆分

两个文档合并,同时拆分第一列的字母和数字,最后按一定格式输出,第一张图片601,第二张602,第三张合并后。clcclearfid=fopen('F:\Ly\201704\15\601.txt','r');A=textscan(fid,'%s %s %f %f %f %f %f %f %f','headerlines', 2);fid1=fopen('F:\Ly\201704\15\602.

2017-04-18 10:09:29 2383

原创 Matlab 百万行数据处理

clcclearLy=fopen('F:\Ly\201704\16\ergou.txt','wt');fid=fopen('F:\Ly\201704\16\z1.txt','rt');%%逐行读取,逐行处理,逐行输出while feof(fid)~=1 A=fgetl(fid); %%处理数据代码段 [row_A,column_A]=size(A); k=1

2017-04-18 09:55:58 4048

原创 matlab批量读写与处理大量一样的Text

%批量求均值clcclearfile=dir('C:\Users\tt\Desktop\density\*.log');%文件格式 for h=1:length(file)%计算文件数目 fid(h)=fopen(['C:\Users\tt\Desktop\density\',file(h).name],'r');%循环读取文件for i=1

2016-12-12 11:24:21 2566

原创 matlab处理text文档格式问题

%处理上述text文档格式问题文档格式要求‘%5d%-5s%5s%5d%8.3f%8.3f%8.3f%’ clc clear fid=importdata(‘F:\ergou.txt’);%括号中为文件所在位置 textdata=fid.textdata; data=fid.data; [m1,n1]=size(data);%文件行数 [m2,n2]=size(textdata);fo

2016-12-12 10:44:04 788

原创 C语言文本处理列与列之间多一个空格

%5d %-5s %5s %5d %8.3f %8.3f %8.3f \n由于%5d %-5s之间用空格区分从而导致输出时会有多余空格%5d%-5s%5s%5d%8.3f%8.3f%8.3f\n改成这样就解决了。

2016-12-12 10:37:33 548

原创 快速排序

#includeusing namespace std;int partition(int *p, int len){ int i = -1; int key = *(p + len); for (int j = 0; j <=len; j++) { if (*(p + j) <= key) { i = i + 1; int temp = *(p + i);

2016-10-05 21:35:33 153

Probability and Statistics 7th

Probability and Statistics 电子版。 课后习题环环相扣,一步步夯实你对概念的理解,同时包含了完整版的解答让你及时查漏补缺。

2017-12-07

Learn Python The Hard Way 3rd Edition

Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 The Hard Way Is Easier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Reading and Writing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Attention to Detail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Spotting Differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Do Not Copy- Paste . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 A Note on Practice and Persistence . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 A Warning for the Smarties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Exercise 0 The Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Mac OSX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 OSX: What You Should See . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Windows . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Windows: What You Should See . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Linux: What You Should See . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Warnings for Beginners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Exercise 1 A Good First Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 What You Should See . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Study Drills . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Common Student Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Exercise 2 Comments and Pound Characters . . . . . . . . . . . . . . . . . . . . 18 What You Should See . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Study Drills . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Common Student Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Exercise 3 Numbers and Math . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 What You Should See . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Study Drills . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Common Student Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

2017-09-12

Python_Cookbook_3rd_Edition

原版英文PDF 1. Data Structures and Algorithms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1.1. Unpacking a Sequence into Separate Variables 1 1.2. Unpacking Elements from Iterables of Arbitrary Length 3 1.3. Keeping the Last N Items 5 1.4. Finding the Largest or Smallest N Items 7 1.5. Implementing a Priority Queue 8 1.6. Mapping Keys to Multiple Values in a Dictionary 11 1.7. Keeping Dictionaries in Order 12 1.8. Calculating with Dictionaries 13 1.9. Finding Commonalities in Two Dictionaries 15 1.10. Removing Duplicates from a Sequence while Maintaining Order 17 1.11. Naming a Slice 18 1.12. Determining the Most Frequently Occurring Items in a Sequence 20 1.13. Sorting a List of Dictionaries by a Common Key 21 1.14. Sorting Objects Without Native Comparison Support 23 1.15. Grouping Records Together Based on a Field 24 1.16. Filtering Sequence Elements 26 1.17. Extracting a Subset of a Dictionary 28 1.18. Mapping Names to Sequence Elements 29 1.19. Transforming and Reducing Data at the Same Time 32 1.20. Combining Multiple Mappings into a Single Mapping 33 2. Strings and Text. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 2.1. Splitting Strings on Any of Multiple Delimiters 37 2.2. Matching Text at the Start or End of a String 38 2.3. Matching Strings Using Shell Wildcard Patterns 40 2.4. Matching and Searching for Text Patterns 42

2017-09-12

matlab退火算法案例

matlab退火算法案例

2016-06-03

空空如也

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

TA关注的人

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