自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (1)
  • 收藏
  • 关注

原创 linux 查看系统存储空间

//查看当前系统磁盘使用空间df -h//查看当前目录文件占用空间大小du -sh *//查看指定文件夹下所有文件大小(包括子文件夹) du -h ftpdf -hl 查看磁盘剩余空间df -h 查看每个根路径的分区大小du -sh [目录名] 返回该目录的大小du -sm [文件夹] 返回该文件夹总M数...

2020-07-28 07:43:20 2018

原创 wcf获取服务器返回的异常

使用FaultReason等类对象进行操作服务器code:using System;using System.Collections.Generic;using System.Linq;using System.Runtime.Serialization;using System.ServiceModel;using System.Text;namespace WcfService1{ // NOTE: You can use the "Rename" command on th

2020-07-22 12:23:23 190

原创 IIS8 部署 WCF service

首先创建wcf service服务新建一个服务,命名为IService4using System;using System.Collections.Generic;using System.Linq;using System.Runtime.Serialization;using System.ServiceModel;using System.Text;namespace WcfService1{ // NOTE: You can use the "Rename" comma

2020-07-20 14:39:56 206

原创 wcf 数据协定

我们在做wcf开发时,经常用到复杂类作为参数的情况,也就是我们要用到的数据协定服务端定义服务协定using System;using System.Collections.Generic;using System.Linq;using System.ServiceModel;using System.Text;using System.Threading.Tasks;namespace wcf{ [ServiceContract(Namespace = "demo", Name

2020-07-20 08:55:01 158

转载 python pyecharts 绘图

柱状图from pyecharts.charts import Barfrom pyecharts import options as optscolumns = ["10.224.105.230","10.224.105.231","10.224.105.234","10.224.105.235","10.224.105.236","10.224.105.237","10.224.105.239","10.224.105.240","10.224.105.241","10.224.105.242

2020-07-16 13:18:50 157

原创 wcf初探,使用通道工厂完成wcf的调用

WCF相关的许多类型都位于System.ServiceModel中,因此需要先引用进来创建一个控制台应用程序,定义服务接口using System;using System.Collections.Generic;using System.Linq;using System.ServiceModel;using System.Text;using System.Threading.Tasks;namespace wcf{ [ServiceContract(Namespace

2020-07-15 13:07:08 241

原创 visual studio gitignore

## Ignore Visual Studio temporary files, build results, and## files generated by popular Visual Studio add-ons.#### Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore# User-specific files*.rsuser*.suo*.user*.use

2020-07-14 12:43:14 379

原创 Asp.NetCore 中使用Swagger

Swagger又被成为openapi,是用来生成API的帮助文档的,废话不多说,直接说配置安装install-package swashbuckle.AspNetCore配置Startup.cs在ConfigureServices里添加如下code services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new Microsoft.OpenApi.Models.O

2020-07-14 09:58:46 322

原创 python datetime模块操作

开发过程中通常会使用datetime,精确到某一位的情况# conding=utf8from datetime import datetime, timedeltaimport timea = datetime.now()print(a.strftime("%Y-%m-%d %H:%M:%S")) # 获取当前时间精确到秒数# 2018-01-28 23:33:18print(a.strftime("%Y-%m-%d %H:%M")) # 获取当前时间精确到分钟# 2018-01-28

2020-07-14 08:32:26 134

原创 python pycurl 的使用

安装 pip install pycurl官网http://pycurl.io/docs/latest/index.html参数介绍https://www.runoob.com/php/func-curl_setopt.html注意python 3 使用io取代StringIO , 我们需要这样导入StringIO 或者BytesIO如果使用post想要获取返回值时,建议使用BytesIO , 因为使用StringIO 可能会报错(pycurl.error: (23, .

2020-07-06 09:25:45 1818

原创 强制卸载visual studio 2017

运行C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\layout\installcleanup.exeDelete everything under:C:\ProgramData\Microsoft\VisualStudio\15.0C:\ProgramData\Microsoft\VisualStudio\Packages%appdata%\Microsoft\VisualStudio\15.0*%

2020-07-02 14:15:45 1715

原创 python 操作mysql

1 安装mysqlhttps://blog.csdn.net/qq_37350706/article/details/817078622 安装pymysqlpip install pymysql使用 pymysql 的 connect() 方法连接数据库,connect 参数解释如下:host:MySQL服务的地址,若数据库在本地上,使用 localhost 或者127.0.0.1。如果在其它的服务器上,则写对应的 IP地址port:服务的端口号,默认为3306,不写则为默认值。user

2020-07-01 15:18:22 165

WindowsFormsApp1.zip

一个很简单的demo,使用entityframework框架,结合postgresql数据库,实现一对多关系的映射(使用注册map的方式)

2020-05-13

空空如也

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

TA关注的人

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