登录
首页 » C# » c# 敏感词过滤(繁体简体互换/支持全角半角互换/汉字转拼音)示例源码

c# 敏感词过滤(繁体简体互换/支持全角半角互换/汉字转拼音)示例源码

于 2017-08-23 发布
0 144
下载积分: 1 下载次数: 1

代码说明:

拼音 模糊搜索

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • C#车牌识别参考(数字图像处理)
    C#车牌识别参考(数字图像处理)
    2019-03-25下载
    积分:1
  • 自动登录qq空间,获取最近访客列表.
    自动登录qq空间,获取最近访客列表.using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication1{ public partial class Form1 : Form { Timer terAutologin = new Timer(); public Form1() { InitializeComponent(); terAutologin.Enabled = true; terAutologin.Interval = 3 * 1000; terAutologin.Tick = ter_Tick; } void ter_Tick(object sender, EventArgs e) { if(wb1.Document==null) { return; } HtmlElement dialog_content_1 = wb1.Document.GetElementById("dialog_content_1"); if (dialog_content_1 == null) { return; } var frame = wb1.Document.Window.Frames[0]; if (frame==null) { return; } if (frame.Document==null) { return; } // iframe HtmlElement u = frame.Document.GetElementById("u"); u.InnerText = "171586098"; HtmlElement p = frame.Document.GetElementById("p"); p.InnerText = "*************"; p.SetAttribute("value", "********"); HtmlElement login_button = frame.Document.GetElementById("login_button"); login_button.InvokeMember("click"); terAutologin.Stop(); } private void Form1_Load(object sender, EventArgs e) { ssl1.Text = string.Empty; txtUrl.Text = "http://user.qzone.qq.com/14371939"; wb1.ScriptErrorsSuppressed = true; wb1.Navigate("http://user.qzone.qq.com/14371939/main"); } private void btnGO_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(txtUrl.Text)) { wb1.Navigate(txtUrl.Text); ssl1.Text = txtUrl.Text " Navigated"; } } private void wb1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { System.Diagnostics.Trace.WriteLine(e.Url.ToString()); // http://g.cnc.qzone.qq.com/cgi-bin/friendshow/cgi_get_visitor_simple?uin=4371939&type=1&mask=3&rd=0.7801240284461528&_=1397644130601&g_tk=9281770 ssl1.Text = e.Url.ToString() " Completed"; tryRead(); } private void btnTest_Click(object sender, EventArgs e) { tryRead(); } private void tryRead() { if (wb1.Document == null) { return; } HtmlElement pagediv = wb1.Document.GetElementById("visitor_list_page_con"); if (pagediv==null) { return; } //若分页内容存在,则表示已经加载过了. if(pagediv.Children.Count>0) { handlerAbc(null,null); return; } //模拟点击 "最近访客" var aa = pagediv.Parent.Parent.FirstChild.Children[2]; aa.InvokeMember("click"); //给访问列表的容器绑定一个事件...回调时就能获取到. HtmlElement guestlist = pagediv.Parent.FirstChild; //ul.RaiseEvent guestlist.AttachEventHandler("onpropertychange", new EventHandler(handlerAbc)); } private void handlerAbc(Object sender, EventArgs e) { HtmlElement div = wb1.Document.GetElementById("visitor_list_page_con"); HtmlElement guestlist = div.Parent.FirstChild; if (guestlist.InnerHtml.IndexOf("QZONE.FrontPage.showLoginBox") > -1) { HtmlElement alogin = guestlist.GetElementsByTagName("a")[0]; alogin.InvokeMember("click"); // 使用定时器.检测登录窗口的出现.. terAutologin.Start(); return; } else { System.Text.StringBuilder sb = new StringBuilder(); // 取回里面的内容? foreach (HtmlElement li in guestlist.Children) { string qq = li.GetAttribute("uin"); string visitname = li.Children[1].FirstChild.InnerText; string visittime = li.Children[1].Children[1].InnerText; sb.AppendLine(qq visitname visittime); } MessageBox.Show(sb.ToString()); } } }}
    2014-04-18下载
    积分:1
  • rossler混沌同步的MATLAB程序
    rossler混沌同步的MATLAB程序,倾力奉献!
    2019-04-21下载
    积分:1
  • 类QQ截屏实例下载
    类QQ截屏实例下载
    2013-10-03下载
    积分:1
  • C# qq接口程序(给好友发消息 查看qq资料)
    给好友发消息  查看qq资料 均可用
    2014-07-05下载
    积分:1
  • C#抽奖系统源码(适合新手学习)
    使用于各个场合的抽奖系统,代码中给出了详细注释,供大家学习,抽奖标题、抽奖内容、抽奖人员名单可自定
    2019-09-26下载
    积分:1
  • 称重系统源码
    8142Pro 单显示型称重显示仪(8142Pro -xxx7)是梅特勒-托利多(常州)称重设备系统有限公司最新推出的,与车辆衡配套使用的称重显示仪表。它是托利多8142系列仪表的更新换代产品。它继承 了8142仪表稳定和可靠的优点,同时在性能和功能上有所扩展。
    2019-12-12下载
    积分:1
  • C# 将数字 转换成人民币大写的形式
    C# 将数字 转换成人民币大写的形式
    2013-12-03下载
    积分:1
  • RS-232接口 示例源码下载 SerialPortTerminal
    RS-232接口 示例源码下载 SerialPortTerminal
    2021-04-20 23:48:49下载
    积分:1
  • c# winform 自定义控件类LayeredSkin.dll
    自定义开关按钮,滚动相册,进度条,窗体控件/******************************************************************** * * * * 使本项目源码或本项目生成的DLL前请仔细阅读以下协议内容,如果你同意以下协议才能使用本项目所有的功能, * * 否则如果你违反了以下协议,有可能陷入法律纠纷和赔偿,作者保留追究法律责任的权利。 * * * * 1、你可以在开发的软件产品中使用和修改本项目的源码和DLL,但是请保留所有相关的版权信息。 * * 2、不能将本项目源码与作者的其他项目整合作为一个单独的软件售卖给他人使用。 * * 3、不能传播本项目的源码和DLL,包括上传到网上、拷贝给他人等方式。 * * 4、以上协议暂时定制,由于还不完善,作者保留以后修改协议的权利。 * * * * Copyright (C) 2013-2014 LayeredSkin Corporation All rights reserved. * * 作者: 小红帽  QQ:761716178 * * 请保留以上版权信息,否则作者将保留追究法律责任。 * * * * 创建时间:2014-04-13 * * 说明:QQ.cs * *********************************************************************/using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using LayeredSkin.Forms;namespace test{    public partial class QQ : LayeredForm    {        public QQ()        {            InitializeComponent();        }        private void layeredButton1_Click(object sender, EventArgs e)        {            this.WindowState = FormWindowState.Minimized;        }        private void QQ_Load(object sender, EventArgs e)        {            this.Animation.Effect = new LayeredSkin.Animations.GradualCurtainEffect() { ChangeHeight = 25 };            yezi = new Bitmap(90, 80);//先把叶子画在稍微大一点的画布上,这样叶子旋转的时候才不会被裁掉一部分            using (Graphics g = Graphics.FromImage(yezi))            {                g.DrawImage(Image.FromFile("Images\yezi3.png"), 10, 0);            }            timer1.Start();        }        private void layeredButton2_Click(object sender, EventArgs e)        {            this.Animation.Effect = new LayeredSkin.Animations.GradualCurtainEffect();            this.Animation.Asc = true;            this.Close();        }        private void FormMoveMouseDown(object sender, MouseEventArgs e)        {            LayeredSkin.NativeMethods.MouseToMoveControl(this.Handle);        }        Image Cloud = Image.FromFile("Images\cloud.png");        float cloudX = 0;        Image yezi;        float angle = 10;        bool RotationDirection = true;//是否为顺时针        protected override void OnLayeredPaint(PaintEventArgs e)        {            Graphics g = e.Graphics;            if (cloudX > this.Width - Cloud.Width)            {//云的飘动                cloudX = 0;            }            else            {                cloudX = 0.5f;            }            g.DrawImage(Cloud, cloudX, 0);//把云绘制上去            if (angle > 10)            {//控制旋转方向                RotationDirection = false;            }            if (angle < -10)            {                RotationDirection = true;            }            if (RotationDirection)            {                angle = 1;            }            else            {                angle -= 1;            }            using (Image temp = LayeredSkin.ImageEffects.RotateImage(yezi, angle, new Point(25, 3)))            {                g.DrawImage(temp, 140, 70);//绘制叶子            }            base.OnLayeredPaint(e);        }        private void timer1_Tick(object sender, EventArgs e)        {            LayeredPaint();            GC.Collect();        }        public bool isShow = false;        bool isFirst = true;        private void layeredButton3_Click(object sender, EventArgs e)        {            isShow = false;            if (isFirst)            {                this.Animation.Effect = new LayeredSkin.Animations.ThreeDTurn();                this.Animation.AnimationEnd = Animation_AnimationEnd;            }            isFirst = false;            this.Animation.Asc = false;            this.Animation.Start();        }        //QQConfig config;        void Animation_AnimationEnd(object sender, LayeredSkin.Animations.AnimationEventArgs e)        {            if (!isShow)            {                this.Hide();                QQConfig config = new QQConfig(this);                config.Location = this.Location;                config.Show();            }        }    }}
    2020-12-11下载
    积分:1
  • 696518资源总数
  • 105678会员总数
  • 22今日下载