自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(29)
  • 收藏
  • 关注

转载 Python3.7.1学习(八) Python访问SQL Server数据库

  一、pip install pymssql即可安装pymssql库 二、Python连接SQL Server数据库    实例代码如下: # -*- coding:utf-8 -*-"""@author:Administrator"""import pymssqldef main():...

2019-09-29 16:20:00 114

转载 Linq 三表 left join 的实现

目的实现:    select id,name,jname,cname from userinfo u left join job j on u.job=j.jid left join city c on u.city=c.cid 多表left join代码如下: var list = (from u in dc.userinf...

2019-09-29 16:19:59 130

转载 Python3.7.1学习(七)mysql中pymysql模块详解(一)

  pymysql是纯用Python操作MySQL的模块,其使用方法和MySQLdb几乎相同。此次介绍mysql以及在python中如何用pymysql操作数据库, 以及在mysql中存储过程, 触发器以及事务的实现, 对应到pymysql中应该如何操作。  一、创建连接    1.准备工作,想要使用Python操作MySQL,可以使用pip方式安装:pip install Py...

2019-09-29 16:19:58 135

转载 Python3.7.1学习(六)RabbitMQ在Windows环境下的安装

Windows下安装RabbitMQ环境配置部署环境部署环境:windows server 2008 r2 enterprise(本文安装环境Win7)官方安装部署文档:http://www.rabbitmq.com/install-windows.html官方文档说明1.下载erlang原因在于RabbitMQ服务端代码是使用并发式语言erlang编...

2019-09-29 16:19:57 85

转载 Linq三表连接查询加分组

1.Linq查询2.数据库事例:3.效果图:转载于:https://www.cnblogs.com/simpleBlue3/p/10717444.html

2019-09-29 16:19:56 240

转载 Python3.7.1学习(五) 将列表中的元素转化为数字并排序

# 本文实例讲述了Python中列表元素转为数字的方法。分享给大家供大家参考,具体如下:# 有一个数字字符的列表:numbers = ['2', '4', '1', '3']print(numbers)numbers = list(map(int, numbers))print(numbers) # 输出结果 [2, 4, 1, 3]# 排序:# 使用sorted函数,从小到大排序:nu...

2019-09-29 16:19:55 307

转载 Python3.7.1(四) Print如何在输出中插入变量

# 如果想在打印的字符串中的任意地方加入任意的变量,可以使用python的格式化输出。## 用例代码如下:s = 'Hello'x = len(s)print("The length of %s is %d" % (s, x))# Print :The length of Hello is 5下面是关于格式化输出的一些总结: # (1). %字符:标记转换说明符的开始# (2)....

2019-09-29 16:19:54 510

转载 requests模块使用代理

1.创建try_proxies.py文件import requestsproxies = {"http":"http:117.135.34.6:8060"}headers={"User-Agent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) ...

2019-09-29 16:19:53 146

转载 requests模块发送带headers的Get请求和带参数的请求

1.在PyCharm开发工具中新建try_params.py文件; 2.try_params.py文件中编写代码:import requests#设置请求Headers头部header = {"User-Agent" : "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0;"}#请求输入参数p =...

2019-09-29 16:19:52 337

转载 requests保存图片

1.创建07_save_jpg.py文件import requests#发送请求respone = requests.get("https://www.baidu.com/img/bd_logo1.png?where=super")#保存with open("a.png","wb")as f: f.write(respone.content)2.运行代码...

2019-09-29 16:19:52 948

转载 requests模拟登陆的三种方式

###获取登录后的页面三种方式:一、实例化seesion,使用seesion发送post请求,在使用他获取登陆后的页面import requestssession = requests.session()post_url="http://www.renren.com/plogin.do";post_data={"email":"2290187229@qq.com","passwo...

2019-09-29 16:19:51 130

转载 2-36进制,可以任意进制互转的类

using System; using System.Collections.Generic; using System.Linq; using System.Text;namespace AnyConvertx2x { /// <summary> /// 数字进制转换类 /// </summary> public class AnyConvert { ...

2019-09-29 16:19:50 97

转载 python3.7.1安装Scrapy爬虫框架

python3.7.1安装Scrapy爬虫框架环境:win7(64位), Python3.7.1(64位)一、安装pyhthon 详见Python环境搭建:http://www.runoob.com/python/python-install.html二、Scrapy安装介绍1.运行CMD,输入python --version版本;2.安装Scra...

2019-09-29 16:19:49 72

转载 C#实现整型数据字任意编码任意进制的转换和逆转换

实现如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ public class Number { public string Characters...

2019-09-29 16:19:48 117

转载 提交订单

<%@ Page Title="" Language="C#" MasterPageFile="~/CheckOut.master" AutoEventWireup="true" CodeFile="CheckOut.aspx.cs" Inherits="CheckOut" %><asp:Content ID="Content1" ContentPlaceHo...

2019-09-29 16:19:46 370

转载 XjhDemo 插入数据

create database XjhDemogouse XjhDemogo--商品类别Create table Sort( SortId int primary key identity(1,1),--类别Id SortFatherId int foreign key references Sort(SortId),--FatherId父类ID SortName varc...

2019-09-29 16:19:46 625

转载 获取Json数据

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="JsonSendWay.aspx.cs" Inherits="JsonSendWay" %><% =GetJsonData()%>//代码using System;using System.Collections.Generic;using ...

2019-09-29 16:19:44 79

转载 DAL

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data;using System.Data.SqlClient;/// <summary>///SortInfo 的摘要说明/// </summary>public cla...

2019-09-29 16:19:44 128

转载 JSon数据解析

function createXmlHttp() {   if (typeof XMLHttpRequest != "undefined") {     return new XMLHttpRequest();   }   else if (window.ActiveXObject) {     var aVersions = ["MSXML2...

2019-09-29 16:19:42 88

转载 ASP.NET购物车Cookie获取,创建,添加,更新,删除的用法

#region 添加购物车 public void GetShoppingCart(int skuId, int quanlity) {  HttpCookie cookie = HttpContext.Current.Request.Cookies["myCart"];//获取cookie var reg = Session["userInfo"] as ...

2019-09-29 16:19:42 121

转载 插入订单并且输出订单号的sql存储过程

--插入订单-- create proc InsertOrders ( @OrderNumber varchar(300), @OrderState varchar(30), @OrderType varchar(30), @OrderTime DateTime, @OrderFirm varchar(300), @OrderMoney decimal(8,2), @SendWayMo...

2019-09-29 16:19:41 211

转载 SqlHelper

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Xml;/// <summary>///...

2019-09-29 16:19:40 52

转载 创建sql自定义的函数及商品分页sql存储过程

--商品筛选时判断品牌ID是否存在--select dbo.isValite(94,94)create function isValite(@brandId int,@bId int)returns intas begin Declare @rNumber int if @brandId = @bId set @rNumber = 1 else set @rNumber = 0 i...

2019-09-29 16:19:39 83

转载 JQury自动切换图片

[标签]Jquery图片自动切换<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">&lt...

2019-09-29 16:19:38 84

转载 BLL

using System;using System.Collections.Generic;using System.Linq;using System.Web;/// <summary>///SortInfoManager 的摘要说明/// </summary>public class SortInfoManager{ public static Li...

2019-09-29 16:19:37 148

转载 Web.config

<?xml version="1.0"?><!-- 有关如何配置 ASP.NET 应用程序的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=169433 --><configuration> <appSettings> <add key="ProductsPerPage" val...

2019-09-29 16:19:36 62

转载 Python3.7.1学习(三)求两个list的差集、并集与交集

在python3.7.1对列表的处理中,会经常使用到Python求两个list的差集、交集与并集的方法。下面就以实例形式对此加以分析。# 求两个list的差集、并集与交集# 一.两个list差集## 如有下面两个数组:a = [1, 2, 3]b = [2, 3]# 想要的结果是[1]## 下面记录一下三种实现方式:## 1. 正常的方式# ret = []# for i in ...

2019-09-29 16:19:35 163

转载 Python3.7.1学习(一):redis的连接和简单使用

1.python 利用 redis 第三方库  首先安装:pip install redis2.reids的连接 Redis使用StrictRedis对象来管理对一个redis server 的所有连接,避免每次建立,释放连接的开销,默认,每个Redis实例都会维护一个自己的连接池。可以直接建立一个连接池,然后作为参数Redis,这样就可以实现多个Redis实例共享一...

2019-09-29 16:19:33 108

转载 Python3.7.1学习(二)使用schedule模块定时执行任务

python中有一个轻量级的定时任务调度的库:schedule。他可以完成每分钟,每小时,每天,周几,特定日期的定时任务。因此十分方便我们执行一些轻量级的定时任务。1 安装1.1在cmd中输入python --version,输出结果:Python 3.7.11.2在cmd中输入pip install schedule2代码如下:import scheduleim...

2019-09-29 16:19:33 270

空空如也

空空如也

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

TA关注的人

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