摘要: static S7Client client = new S7Client(); static void Main(string[] args) { var res = client.ConnectTo("192.168.1.1", 0, 1);//连接PLC的IP地址 if (res == 0) 阅读全文
posted @ 2021-04-13 09:33 my_paradise 阅读(2468) 评论(0) 推荐(0) 编辑
摘要: [System.Runtime.InteropServices.DllImportAttribute("visual_pick.dll", SetLastError = true)] public static extern int start(); [System.Runtime.InteropS 阅读全文
posted @ 2021-04-13 09:25 my_paradise 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 第一种方式(命令行进行创建Django): 必须环境:Python Django 命令行创建项目步骤: 第二种方式(利用PyCharm编辑器创建Django): 创建新项目: 运行截图: 自己做博客:http://www.jb51.net/article/114516.htm 阅读全文
posted @ 2017-06-08 11:36 my_paradise 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 报错: Unhandled exception in thread started by <function wrapper at 0x2d7e410> Traceback (most recent call last): File "/root/virtual_dir/wxwebapp_court 阅读全文
posted @ 2017-06-08 09:58 my_paradise 阅读(1010) 评论(0) 推荐(0) 编辑
摘要: 第一步:安装Dapper 在程序包管理控制台运行命令 PM> Install-Package Dapper 第二步:新建项目并引用想要数据库的相关dll 第三步:创建数据库连接对象 第四步:通过连接对象进行对数据库中的数据进行增删改查操作 上面的文件:下载文件 阅读全文
posted @ 2017-06-06 10:35 my_paradise 阅读(1443) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> < 阅读全文
posted @ 2017-06-05 15:51 my_paradise 阅读(919) 评论(1) 推荐(0) 编辑
摘要: 实现送耦合: 分离的的话相当于controler就单独是一个项目,view所在的项目就只用关系ui,因为一般情况下我们也会将model作为一个单独的项目来处理。 实现方法: 1:建一个类库,用来放controler在该类库中添加引用System.Web.dll,System.Web.Abstract 阅读全文
posted @ 2017-05-19 16:28 my_paradise 阅读(348) 评论(0) 推荐(0) 编辑
摘要: # -*- coding:utf-8 -*-import urllib2import redef load_Page(url,begin_page,end_page): ''' 加载贴吧信息 ''' for i in range(begin_page,end_page+1): pn = 50*(i- 阅读全文
posted @ 2017-05-09 10:09 my_paradise 阅读(272) 评论(0) 推荐(0) 编辑
摘要: window需要下载.net core SDK ,下载地址:https://www.microsoft.com/net/core#windowscmd 安装成功后,用命令行进入指定位置,输入 dotnet new mvc即可初始化一个mvc的项目 继续输入dotnet restore,dotnet 阅读全文
posted @ 2017-05-05 10:24 my_paradise 阅读(214) 评论(0) 推荐(0) 编辑
摘要: # coding=utf-8 import urllib import re def downloadPage(url): h = urllib.urlopen(url) return h.read() def downloadImg(content): pattern = r'src="(.+?\.jpg)" alt' #正则匹配图片标签 m = re... 阅读全文
posted @ 2017-04-01 09:13 my_paradise 阅读(399) 评论(0) 推荐(0) 编辑