您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. 正则表达式匹配中文与双字节的代码

  2. 匹配中文字符 [\u4e00-\u9fa5] C# 代码如下: class Class1 { static void Main() { string s = “中文 chinese”; Regex regx = new Regex(“[\u4e00-\u9fa5]+”); Match m = regx.Match(s); Console.WriteLine(m.Groups[0].Value); // 中文 Console.ReadKey(); } } 匹配双字节字符(包括汉字) [^\x0
  3. 所属分类:其它

    • 发布日期:2020-12-13
    • 文件大小:22528
    • 提供者:weixin_38654855
  1. html中div不自动换行、强制不换行的具体实现

  2. 1.用标签实现不换行 复制代码代码如下: Hello world! Hello world! 2.用标签 复制代码代码如下: Hello world! Hello world! Hello world! Hello world! 3强制不换行 复制代码代码如下: div{ white-space:nowrap; } 4.如果是两个div,可使用float实现不换行 复制代码代码如下: hello <div cla
  3. 所属分类:其它

    • 发布日期:2020-12-04
    • 文件大小:17408
    • 提供者:weixin_38641366
  1. C#获取文件创建时间的方法

  2. 本文实例讲述了C#获取文件创建时间的方法。分享给大家供大家参考。具体如下: C#获取文件创建时间,主要用到了FileInfo的CreattionTime属性 using System; using System.IO; class Class1 { static void Main(string[] args) { string[] cla = Environment.GetCommandLineArgs(); if (cla.GetUpperBound(0) == 2) {
  3. 所属分类:其它

    • 发布日期:2020-12-25
    • 文件大小:32768
    • 提供者:weixin_38705874
  1. C#中Ilist与list的区别小结

  2. 常见问题: Ilist 本身只是一个泛型接口, 既然是接口当然不能实例化,只能用如下方法 IList IList11 =new List (); 但是为什么要这么用呢,为什么不直接用List: List List11 =new List (); 第一种用法有什么好处。 总结归纳一下: Ilist 是在 .net2.0里面才支持的 好处嘛..比如说human和tiger都有行走的功能,你可以把这些归类到interface中,当你有一个动物的类包括有这两种动物时,你想让他们行走你只需要调
  3. 所属分类:其它

    • 发布日期:2020-12-25
    • 文件大小:52224
    • 提供者:weixin_38581455
  1. C#组合函数的使用详解

  2. 如下所示: 代码如下:using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication1{    class Class1    {        static string[] str = { “A”, “B”, “C”, “D”, “E” };        static void Main()        {            Dictionary dic = ne
  3. 所属分类:其它

    • 发布日期:2020-12-25
    • 文件大小:29696
    • 提供者:weixin_38622827
  1. C# 表达式目录树的应用详解

  2. 使用表达式目录树实现两个不同类型的属性赋值: public class People { public int Age { get; set; } public string Name { get; set; } public int Id; } public class PeopleCopy { public int Age { get; set; } public string Name { get; set; } public int Id; } public class Class1
  3. 所属分类:其它

    • 发布日期:2020-12-25
    • 文件大小:27648
    • 提供者:weixin_38746738
  1. pandas使用get_dummies进行one-hot编码的方法

  2. 离散特征的编码分为两种情况: 1、离散特征的取值之间没有大小的意义,比如color:[red,blue],那么就使用one-hot编码 2、离散特征的取值有大小的意义,比如size:[X,XL,XXL],那么就使用数值的映射{X:1,XL:2,XXL:3} 使用pandas可以很方便的对离散型特征进行one-hot编码 import pandas as pd df = pd.DataFrame([ ['green', 'M', 10.1, 'class1'], ['red', 'L
  3. 所属分类:其它

    • 发布日期:2020-12-24
    • 文件大小:50176
    • 提供者:weixin_38628920
  1. Java设计模式-外观模式

  2. 用途   外观模式 (Facade)   为子系统中的一组接口提供一个一致的界面,此模式定义了一个高层接口,这个接口使得这一子系统更加容易使用。   外观模式是一种结构型模式。   结构   图-外观模式结构图   Facade : 了解每个子系统类的功能,负责分发客户端的请求给各个子系统去处理。 class Class1 { public void op1() { System.out.println("方法1"); } } class Class2 { pu
  3. 所属分类:其它

    • 发布日期:2020-12-22
    • 文件大小:48128
    • 提供者:weixin_38711972
  1. 揭示C++中全局类变量的构造与析构顺序

  2. 我们可以通过代码1所示的示例程序观察到C++中一个关于全局类变量初始化顺序的有趣的现象。     class1.cpp                                                                             #include                                                                                                      
  3. 所属分类:其它

    • 发布日期:2020-12-22
    • 文件大小:62464
    • 提供者:weixin_38637878
  1. .net委托(委托链)的若干“陷阱”

  2. 陷阱1:“委托链在执行期间可以(根据业务需要)动态增减其中委托实例”   委托链是由委托对象(实例)构成的一个集合。利用委托链,可依次调用集合中委托所代表的全部方法。   "+="、"-="操作符常用来简化委托链的构造,它们分别表示向委托链中增加一个委托对象和从委托链中移除一个委托对象。   委托链构造的便捷性给开发者设下了一个优美的陷阱。有不少同学(包括我自己)认为,在委托链依次执行的过程中,我们可以根据某种逻辑规则来决定是否让委托链继续执行。示例代码如下: public cl
  3. 所属分类:其它

    • 发布日期:2020-12-22
    • 文件大小:92160
    • 提供者:weixin_38543120
  1. C# WinForm 登录界面的图片验证码(区分大小写+不区分大小写)

  2. 一、功能界面 图1 验证码(区分大小写) 图2 验证码(不区分大小写) 二、创建一个产生验证码的类Class1 (1)生成随机验证码字符串,用的是Random随机函数 (2)创建验证码图片,将该字符串画在PictureBox控件中 Class1.cs: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; us
  3. 所属分类:其它

    • 发布日期:2020-12-20
    • 文件大小:91136
    • 提供者:weixin_38738272
  1. php实现查询功能(数据访问)

  2. 本文实例为大家分享了php实现查询功能的具体代码,供大家参考,具体内容如下 输入关键字效果 代码: 汽车信息 <?php require"DBDA.class1.php";//$type 代表SQL语句的类型,0代表增删改,1代表查询 $db = new DBDA(); //如果没有提交数据,显示所有 //如果有提交数据,根据关键字查询显示 $name = ""; $tj1 = " 1=1 ";//第一个条件,对应名称,注意空格 $tj2 = " 1=1 ";//第二个条件,对应系
  3. 所属分类:其它

    • 发布日期:2020-12-20
    • 文件大小:41984
    • 提供者:weixin_38738189
  1. php出租房数据管理及搜索页面

  2. php数据访问例子:租房信息管理,具体内容如下 1.数据库建表 2. zufangzi.php 租房子 区域:全选 <?php require "DBDA.class1.php"; $db = new DBDA(); $sqy = "select distinct area from house";//写SQ
  3. 所属分类:其它

    • 发布日期:2020-12-19
    • 文件大小:47104
    • 提供者:weixin_38729438
  1. 磁盘配额的wmi版本(C#)

  2. using System;  using System.Management;  namespace DiskQuota  {       ///        /// Class1 的摘要说明。       ///        class Class1       {           ///            /// 应用程序的主入口点。           ///            [STAThread]           static void Main(string[] 
  3. 所属分类:其它

    • 发布日期:2020-12-31
    • 文件大小:33792
    • 提供者:weixin_38663029
  1. c# 动态加载dll文件,并实现调用其中的简单方法

  2. 以下是测试代码: 新建一个classlibrary,包含两个类class1和class2,这两个类中分别有一个方法,都是返回一个字符串,代码如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace mydll { public class Class1 { public Class1() { } public st
  3. 所属分类:其它

    • 发布日期:2020-12-31
    • 文件大小:48128
    • 提供者:weixin_38695471
  1. Pandas之MultiIndex对象的示例详解

  2. 约定 import pandas as pd from pandas import DataFrame import numpy as np MultiIndex MultiIndex表示多级索引,它是从Index继承过来的,其中多级标签用元组对象来表示。 一、创建MultiIndex对象 创建方式一:元组列表 m_index1=pd.Index([(A,x1),(A,x2),(B,y1),(B,y2),(B,y3)],name=[class1,class2]) m_index1 代
  3. 所属分类:其它

    • 发布日期:2020-12-31
    • 文件大小:40960
    • 提供者:weixin_38704011
  1. 详解C#用new和override来实现抽象类的重写区别

  2. 一,抽象的实现 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Virtualdemo { class Program { static void Main(string[] args) {//BClass A = new BClass(); 抽象类无法被实例 Class1 c = new Class1();
  3. 所属分类:其它

    • 发布日期:2020-12-31
    • 文件大小:58368
    • 提供者:weixin_38703823
  1. c#转换全角半角方法示例

  2. C#全角转换成半角 新建一个项目quanbanjiao,在此项目下新建一个类Class1 代码如下:using System;using System.Web;using System.Text; namespace quanbanjiao{    public class Class1    {        /**/        ///         /// 判断字符是否英文半角字符或标点        ///         ///         /// 32    空格     
  3. 所属分类:其它

    • 发布日期:2020-12-31
    • 文件大小:35840
    • 提供者:weixin_38656741
  1. C#类中static变量用法分析

  2. 本文实例讲述了C#类中static变量用法。分享给大家供大家参考。具体分析如下: 先来看一段代码: 代码如下:using System; namespace Param { class Class1 { static int i = getNum(); int j = getNum(); static int num = 1; static int getNum() { return num; } [STAThread] static void Main(string
  3. 所属分类:其它

    • 发布日期:2020-12-31
    • 文件大小:56320
    • 提供者:weixin_38631329
  1. 微信小程序实现图片翻转效果的实例代码

  2. 老规矩,先上图: 页面: 代码: data: { class1: 'z1', //默认正面在上面 clas
  3. 所属分类:其它

    • 发布日期:2020-12-30
    • 文件大小:30720
    • 提供者:weixin_38693720
« 1 2 3 4 5 6 78 9 10 »