C#语言实例源码系列-实现ID卡的识别

news2024/10/9 18:19:08
专栏分享
  • 点击跳转=>Unity3D特效百例
  • 点击跳转=>案例项目实战源码
  • 点击跳转=>游戏脚本-辅助自动化
  • 点击跳转=>Android控件全解手册

👉关于作者

众所周知,人生是一个漫长的流程,不断克服困难,不断反思前进的过程。在这个过程中会产生很多对于人生的质疑和思考,于是我决定将自己的思考,经验和故事全部分享出来,以此寻找共鸣 !!!
专注于Android/Unity和各种游戏开发技巧,以及各种资源分享(网站、工具、素材、源码、游戏等)
有什么需要欢迎私我,交流群让学习不再孤单

在这里插入图片描述

👉实践过程

😜效果

在这里插入图片描述

😜代码

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
    }
    public delegate int HookProc(int nCode, int wParam, IntPtr lParam);
    static int hHook = 0;
    public const int WH_KEYBOARD_LL = 13;
    //LowLevel键盘截获,如果是WH_KEYBOARD=2,并不能对系统键盘截取,Acrobat Reader会在你截取之前获得键盘。  
    HookProc KeyBoardHookProcedure;
    [DllImport("kernel32")]
    public static extern int Beep(int dwFreq, int dwDuration);//让计算机蜂鸣
    string DataPath = "";//数据库路径
    OleDbConnection con;//OleDbConnection对象,连接数据库
    OleDbCommand cmd;//OleDbCommand对象,执行SQL语句
    //键盘Hook结构函数  
    [StructLayout(LayoutKind.Sequential)]
    public class KeyBoardHookStruct
    {
        public int vkCode;
        public int scanCode;
        public int flags;
        public int time;
        public int dwExtraInfo;
    }
    [DllImport("user32.dll")]
    public static extern int SetWindowsHookEx(int idHook, HookProc lpfn, IntPtr hInstance, int threadId);
    [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)]
    //抽掉钩子  
    public static extern bool UnhookWindowsHookEx(int idHook);
    [DllImport("user32.dll")]
    //调用下一个钩子  
    public static extern int CallNextHookEx(int idHook, int nCode, int wParam, IntPtr lParam);
    [DllImport("kernel32.dll")]
    public static extern IntPtr GetModuleHandle(string name);

    public string  getNum(string code)
    {
        string flag = "";
        switch (code)
        {
            case "048":
                flag="0"; break;
            case "049":
                flag = "1"; break;
            case "050":
                flag = "2"; break;
            case "051":
                flag = "3"; break;
            case "052":
                flag = "4"; break;
            case "053":
                flag = "5"; break;
            case "054":
                flag = "6"; break;
            case "055":
                flag = "7"; break;
            case "056":
                flag = "8"; break;
            case "057":
                flag = "9"; break;
        }
        return flag;
    }
    public void Hook_Start()
    {

        // 安装键盘钩子  
        if (hHook == 0)
        {
            KeyBoardHookProcedure = new HookProc(KeyBoardHookProc);
            hHook = SetWindowsHookEx(WH_KEYBOARD_LL,
                      KeyBoardHookProcedure,
                    GetModuleHandle(Process.GetCurrentProcess().MainModule.ModuleName), 0);
            //如果设置钩子失败.  
            if (hHook == 0)
            {
                Hook_Clear(); 
            }
        }
    }

    //取消钩子事件  
    public void Hook_Clear()
    {
        bool retKeyboard = true;
        if (hHook != 0)
        {
            retKeyboard = UnhookWindowsHookEx(hHook);
            hHook = 0;
        }
        //如果去掉钩子失败.  
        if (!retKeyboard) throw new Exception("UnhookWindowsHookEx failed.");
    }

    //这里可以添加自己想要的信息处理  
    string NumCode="";
    public int KeyBoardHookProc(int nCode, int wParam, IntPtr lParam)
    {
        if (nCode >= 0)
        {
            if (wParam == 0x0104 || wParam == 0x0100)
            {
                KeyBoardHookStruct kbh = (KeyBoardHookStruct)Marshal.PtrToStructure(lParam, typeof(KeyBoardHookStruct));
                int flag = kbh.vkCode;
                switch (flag)
                {
                    case 96:
                        NumCode += "0"; break;
                    case 97:
                        NumCode += "1"; break;
                    case 98:
                        NumCode += "2"; break;
                    case 99:
                        NumCode += "3"; break;
                    case 100:
                        NumCode += "4"; break;
                    case 101:
                        NumCode += "5"; break;
                    case 102:
                        NumCode += "6"; break;
                    case 103:
                        NumCode += "7"; break;
                    case 104:
                        NumCode += "8"; break;
                    case 105:
                        NumCode += "9"; break;
                }

                if (flag == 13)
                {
                    if (NumCode.Length != 0)
                    {
                        string c = "";
                        string id = "";
                        for (int i = 0; i <= NumCode.Length - 3; i += 3)
                        {
                            string b = NumCode.Substring(i, 3);
                            c += getNum(b);
                        }
                        id = c;
                        if (id.Length == 8)//如果卡号为8位
                        {
                            //实例化OleDbConnection对象
                            con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data source=" + DataPath);
                            con.Open();//打开数据库连接
                            //实例化OleDbCommand对象,根据ID卡号检索数据表
                            cmd = new OleDbCommand("select * from tb_UserInfo where CardID='" + id + "'", con);
                            OleDbDataReader sdr = cmd.ExecuteReader();//实例化OleDbDataReader对象
                            sdr.Read();//读取记录
                            txtShowCardID.Text = id;//获取ID卡号
                            txtShowName.Text = sdr["UName"].ToString();//获取员工姓名
                            cbbShowSex.Text = sdr["USex"].ToString();//获取员工性别
                            cbbShowDep.Text = sdr["UDep"].ToString();//获取员工部门
                            con.Close();//关闭数据库连接
                            Beep(3000, 100);//计算机蜂鸣
                        }
                        NumCode = "";
                    }
                }

            }
        }
        return CallNextHookEx(hHook, nCode, wParam, lParam);
    } 



    private void Form1_Load(object sender, EventArgs e)
    {
        cbbdep.SelectedIndex = 0;//设置部门下拉框的第一项被选中
        cbbsex.SelectedIndex = 0;//设置性别下拉框的第一项被选中
        //获取数据库路径
        DataPath = Application.StartupPath.ToString();
        DataPath = DataPath.Substring(0, DataPath.LastIndexOf("\\"));
        DataPath = DataPath.Substring(0, DataPath.LastIndexOf("\\"));
        DataPath += @"\db.mdb";
        
    }

    private void radioButton1_CheckedChanged(object sender, EventArgs e)
    {
        if (radioButton1.Checked)
        {
            groupBox1.Enabled = true;
            Hook_Clear();
        }
    }

    private void radioButton2_CheckedChanged(object sender, EventArgs e)
    {
        if (radioButton2.Checked)
        {
            groupBox1.Enabled = false;
            Hook_Start();
        }
    }

    private void button2_Click(object sender, EventArgs e)
    {
        txtIdcard.Text = "";
        txtName.Text = "";
    }

    private void button1_Click(object sender, EventArgs e)
    {
        if (txtIdcard.Text == "" || txtName.Text == "")//如果没有输入ID卡号和员工姓名
        {
            //弹出警告信息
            if (MessageBox.Show("请将数据填写完整!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Error) == DialogResult.OK)
            {
                if (txtIdcard.Text == "")//如果没有输入ID卡号
                    txtIdcard.Focus();//则光标处在输入ID卡号的文本框
                if (txtName.Text == "")//如果没有输入员工姓名
                    txtName.Focus();//则光标处在输入员工姓名的文本框
                if (txtIdcard.Text == "" && txtName.Text == "")//如果都没输入数据
                    txtIdcard.Focus();//则光标处在输入ID卡号的文本框
            }
        }
        else//如果输入了数据
        {
            if (txtIdcard.Text.Trim().Length != 8)//如果输入的ID卡号不是8位
            {
                //弹出警告信息
                if (MessageBox.Show("ID卡号必须为8位!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Error) == DialogResult.OK)
                {
                    txtIdcard.Text = "";//清空输入ID卡号的文本框
                    txtIdcard.Focus();//让光标处在输入ID卡号的文本框上
                }
            }
            else//如果输入的ID卡号为8位
            {
                //实例化OleDbConnection对象
                con=new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data source=" + DataPath);
                con.Open();//打开连接
                //实例化OleDbCommand对象
                cmd = new OleDbCommand("select count(*) from tb_UserInfo where CardID='"+txtIdcard.Text.Trim()+"'", con);
                int flag =Convert.ToInt32(cmd.ExecuteScalar());//判断是否已经添加过此ID卡号
                if (flag > 0)//如果大于0则说明已经添加过
                {
                    //弹出警告信息
                    if (MessageBox.Show("ID卡号已经添加过了!", "警告", MessageBoxButtons.OK, MessageBoxIcon.Error) == DialogResult.OK)
                    {
                        button2_Click(sender, e);//清空输入ID卡号和员工姓名的文本框
                    }
                }
                else//如果小于0说明没有添加过
                {
                    //实例化OleDbCommand对象
                    cmd = new OleDbCommand("insert into tb_UserInfo(CardID,UName,USex,UDep) values ('" + txtIdcard.Text.Trim() + "','" + txtName.Text.Trim() + "','" + cbbsex.Text.Trim() + "','" + cbbdep.Text.Trim() + "')", con);
                    int k = cmd.ExecuteNonQuery();//执行insert语句,将输入的信息添加到数据库中
                    if (k > 0)//如果大于0则操作成功
                    {
                        //弹出提示信息
                        if (MessageBox.Show("添加成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information) == DialogResult.OK)
                        {
                            button2_Click(sender, e);//清空输入ID卡号和员工姓名的文本框
                        }
                    }
                }
                con.Close();//关闭数据库连接
            }
        }
    }

    private void txtIdcard_KeyPress(object sender, KeyPressEventArgs e)
    {
        if (!(e.KeyChar <= '9' && e.KeyChar >= '0') && e.KeyChar != '\r' && e.KeyChar != '\b')
        {
            e.Handled = true;
        }
    }
}
partial class Form1
{
    /// <summary>
    /// 必需的设计器变量。
    /// </summary>
    private System.ComponentModel.IContainer components = null;

    /// <summary>
    /// 清理所有正在使用的资源。
    /// </summary>
    /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
    protected override void Dispose(bool disposing)
    {
        if (disposing && (components != null))
        {
            components.Dispose();
        }
        base.Dispose(disposing);
    }

    #region Windows 窗体设计器生成的代码

    /// <summary>
    /// 设计器支持所需的方法 - 不要
    /// 使用代码编辑器修改此方法的内容。
    /// </summary>
    private void InitializeComponent()
    {
        this.groupBox1 = new System.Windows.Forms.GroupBox();
        this.txtIdcard = new System.Windows.Forms.TextBox();
        this.button2 = new System.Windows.Forms.Button();
        this.button1 = new System.Windows.Forms.Button();
        this.cbbdep = new System.Windows.Forms.ComboBox();
        this.label4 = new System.Windows.Forms.Label();
        this.cbbsex = new System.Windows.Forms.ComboBox();
        this.label3 = new System.Windows.Forms.Label();
        this.txtName = new System.Windows.Forms.TextBox();
        this.label2 = new System.Windows.Forms.Label();
        this.label1 = new System.Windows.Forms.Label();
        this.radioButton1 = new System.Windows.Forms.RadioButton();
        this.radioButton2 = new System.Windows.Forms.RadioButton();
        this.groupBox2 = new System.Windows.Forms.GroupBox();
        this.cbbShowDep = new System.Windows.Forms.ComboBox();
        this.label5 = new System.Windows.Forms.Label();
        this.cbbShowSex = new System.Windows.Forms.ComboBox();
        this.label6 = new System.Windows.Forms.Label();
        this.txtShowName = new System.Windows.Forms.TextBox();
        this.label7 = new System.Windows.Forms.Label();
        this.txtShowCardID = new System.Windows.Forms.TextBox();
        this.label8 = new System.Windows.Forms.Label();
        this.groupBox1.SuspendLayout();
        this.groupBox2.SuspendLayout();
        this.SuspendLayout();
        // 
        // groupBox1
        // 
        this.groupBox1.Controls.Add(this.txtIdcard);
        this.groupBox1.Controls.Add(this.button2);
        this.groupBox1.Controls.Add(this.button1);
        this.groupBox1.Controls.Add(this.cbbdep);
        this.groupBox1.Controls.Add(this.label4);
        this.groupBox1.Controls.Add(this.cbbsex);
        this.groupBox1.Controls.Add(this.label3);
        this.groupBox1.Controls.Add(this.txtName);
        this.groupBox1.Controls.Add(this.label2);
        this.groupBox1.Controls.Add(this.label1);
        this.groupBox1.Location = new System.Drawing.Point(10, 31);
        this.groupBox1.Name = "groupBox1";
        this.groupBox1.Size = new System.Drawing.Size(435, 120);
        this.groupBox1.TabIndex = 0;
        this.groupBox1.TabStop = false;
        this.groupBox1.Text = "输入员工信息";
        // 
        // txtIdcard
        // 
        this.txtIdcard.Location = new System.Drawing.Point(69, 21);
        this.txtIdcard.Name = "txtIdcard";
        this.txtIdcard.Size = new System.Drawing.Size(137, 21);
        this.txtIdcard.TabIndex = 4;
        this.txtIdcard.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtIdcard_KeyPress);
        // 
        // button2
        // 
        this.button2.Location = new System.Drawing.Point(214, 91);
        this.button2.Name = "button2";
        this.button2.Size = new System.Drawing.Size(75, 23);
        this.button2.TabIndex = 9;
        this.button2.Text = "重置";
        this.button2.UseVisualStyleBackColor = true;
        this.button2.Click += new System.EventHandler(this.button2_Click);
        // 
        // button1
        // 
        this.button1.Location = new System.Drawing.Point(131, 91);
        this.button1.Name = "button1";
        this.button1.Size = new System.Drawing.Size(75, 23);
        this.button1.TabIndex = 8;
        this.button1.Text = "添加";
        this.button1.UseVisualStyleBackColor = true;
        this.button1.Click += new System.EventHandler(this.button1_Click);
        // 
        // cbbdep
        // 
        this.cbbdep.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
        this.cbbdep.FormattingEnabled = true;
        this.cbbdep.Items.AddRange(new object[] {
        "C#部门",
        "ASP.NET部门",
        "基础部",
        "VB部门",
        "VC部门",
        "JAVA部门"});
        this.cbbdep.Location = new System.Drawing.Point(279, 57);
        this.cbbdep.Name = "cbbdep";
        this.cbbdep.Size = new System.Drawing.Size(137, 20);
        this.cbbdep.TabIndex = 7;
        // 
        // label4
        // 
        this.label4.AutoSize = true;
        this.label4.Location = new System.Drawing.Point(212, 60);
        this.label4.Name = "label4";
        this.label4.Size = new System.Drawing.Size(65, 12);
        this.label4.TabIndex = 6;
        this.label4.Text = "所属部门:";
        // 
        // cbbsex
        // 
        this.cbbsex.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
        this.cbbsex.FormattingEnabled = true;
        this.cbbsex.Items.AddRange(new object[] {
        "男职工",
        "女职工"});
        this.cbbsex.Location = new System.Drawing.Point(69, 57);
        this.cbbsex.Name = "cbbsex";
        this.cbbsex.Size = new System.Drawing.Size(137, 20);
        this.cbbsex.TabIndex = 5;
        // 
        // label3
        // 
        this.label3.AutoSize = true;
        this.label3.Location = new System.Drawing.Point(6, 61);
        this.label3.Name = "label3";
        this.label3.Size = new System.Drawing.Size(65, 12);
        this.label3.TabIndex = 4;
        this.label3.Text = "员工性别:";
        // 
        // txtName
        // 
        this.txtName.Location = new System.Drawing.Point(279, 21);
        this.txtName.Name = "txtName";
        this.txtName.Size = new System.Drawing.Size(137, 21);
        this.txtName.TabIndex = 3;
        // 
        // label2
        // 
        this.label2.AutoSize = true;
        this.label2.Location = new System.Drawing.Point(212, 26);
        this.label2.Name = "label2";
        this.label2.Size = new System.Drawing.Size(65, 12);
        this.label2.TabIndex = 2;
        this.label2.Text = "员工姓名:";
        // 
        // label1
        // 
        this.label1.AutoSize = true;
        this.label1.Location = new System.Drawing.Point(6, 26);
        this.label1.Name = "label1";
        this.label1.Size = new System.Drawing.Size(65, 12);
        this.label1.TabIndex = 0;
        this.label1.Text = "ID卡编号:";
        // 
        // radioButton1
        // 
        this.radioButton1.AutoSize = true;
        this.radioButton1.Checked = true;
        this.radioButton1.Location = new System.Drawing.Point(10, 8);
        this.radioButton1.Name = "radioButton1";
        this.radioButton1.Size = new System.Drawing.Size(95, 16);
        this.radioButton1.TabIndex = 1;
        this.radioButton1.TabStop = true;
        this.radioButton1.Text = "添加员工信息";
        this.radioButton1.UseVisualStyleBackColor = true;
        this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
        // 
        // radioButton2
        // 
        this.radioButton2.AutoSize = true;
        this.radioButton2.Location = new System.Drawing.Point(10, 157);
        this.radioButton2.Name = "radioButton2";
        this.radioButton2.Size = new System.Drawing.Size(95, 16);
        this.radioButton2.TabIndex = 2;
        this.radioButton2.Text = "获取员工信息";
        this.radioButton2.UseVisualStyleBackColor = true;
        this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged);
        // 
        // groupBox2
        // 
        this.groupBox2.Controls.Add(this.cbbShowDep);
        this.groupBox2.Controls.Add(this.label5);
        this.groupBox2.Controls.Add(this.cbbShowSex);
        this.groupBox2.Controls.Add(this.label6);
        this.groupBox2.Controls.Add(this.txtShowName);
        this.groupBox2.Controls.Add(this.label7);
        this.groupBox2.Controls.Add(this.txtShowCardID);
        this.groupBox2.Controls.Add(this.label8);
        this.groupBox2.Enabled = false;
        this.groupBox2.Location = new System.Drawing.Point(10, 179);
        this.groupBox2.Name = "groupBox2";
        this.groupBox2.Size = new System.Drawing.Size(435, 93);
        this.groupBox2.TabIndex = 3;
        this.groupBox2.TabStop = false;
        this.groupBox2.Text = "员工信息";
        // 
        // cbbShowDep
        // 
        this.cbbShowDep.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
        this.cbbShowDep.FormattingEnabled = true;
        this.cbbShowDep.Items.AddRange(new object[] {
        "C#部门",
        "ASP.NET部门",
        "基础部",
        "VB部门",
        "VC部门",
        "JAVA部门"});
        this.cbbShowDep.Location = new System.Drawing.Point(279, 57);
        this.cbbShowDep.Name = "cbbShowDep";
        this.cbbShowDep.Size = new System.Drawing.Size(137, 20);
        this.cbbShowDep.TabIndex = 7;
        // 
        // label5
        // 
        this.label5.AutoSize = true;
        this.label5.Location = new System.Drawing.Point(212, 60);
        this.label5.Name = "label5";
        this.label5.Size = new System.Drawing.Size(65, 12);
        this.label5.TabIndex = 6;
        this.label5.Text = "所属部门:";
        // 
        // cbbShowSex
        // 
        this.cbbShowSex.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
        this.cbbShowSex.FormattingEnabled = true;
        this.cbbShowSex.Items.AddRange(new object[] {
        "男职工",
        "女职工"});
        this.cbbShowSex.Location = new System.Drawing.Point(69, 57);
        this.cbbShowSex.Name = "cbbShowSex";
        this.cbbShowSex.Size = new System.Drawing.Size(137, 20);
        this.cbbShowSex.TabIndex = 5;
        // 
        // label6
        // 
        this.label6.AutoSize = true;
        this.label6.Location = new System.Drawing.Point(6, 61);
        this.label6.Name = "label6";
        this.label6.Size = new System.Drawing.Size(65, 12);
        this.label6.TabIndex = 4;
        this.label6.Text = "员工性别:";
        // 
        // txtShowName
        // 
        this.txtShowName.Location = new System.Drawing.Point(279, 21);
        this.txtShowName.Name = "txtShowName";
        this.txtShowName.Size = new System.Drawing.Size(137, 21);
        this.txtShowName.TabIndex = 3;
        // 
        // label7
        // 
        this.label7.AutoSize = true;
        this.label7.Location = new System.Drawing.Point(212, 26);
        this.label7.Name = "label7";
        this.label7.Size = new System.Drawing.Size(65, 12);
        this.label7.TabIndex = 2;
        this.label7.Text = "员工姓名:";
        // 
        // txtShowCardID
        // 
        this.txtShowCardID.Location = new System.Drawing.Point(69, 22);
        this.txtShowCardID.Name = "txtShowCardID";
        this.txtShowCardID.Size = new System.Drawing.Size(137, 21);
        this.txtShowCardID.TabIndex = 1;
        // 
        // label8
        // 
        this.label8.AutoSize = true;
        this.label8.Location = new System.Drawing.Point(6, 26);
        this.label8.Name = "label8";
        this.label8.Size = new System.Drawing.Size(65, 12);
        this.label8.TabIndex = 0;
        this.label8.Text = "ID卡编号:";
        // 
        // Form1
        // 
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
        this.ClientSize = new System.Drawing.Size(457, 276);
        this.Controls.Add(this.groupBox2);
        this.Controls.Add(this.radioButton2);
        this.Controls.Add(this.radioButton1);
        this.Controls.Add(this.groupBox1);
        this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
        this.MaximizeBox = false;
        this.Name = "Form1";
        this.Text = "使用ID卡识别员工编号";
        this.Load += new System.EventHandler(this.Form1_Load);
        this.groupBox1.ResumeLayout(false);
        this.groupBox1.PerformLayout();
        this.groupBox2.ResumeLayout(false);
        this.groupBox2.PerformLayout();
        this.ResumeLayout(false);
        this.PerformLayout();

    }

    #endregion

    private System.Windows.Forms.GroupBox groupBox1;
    private System.Windows.Forms.Button button2;
    private System.Windows.Forms.Button button1;
    private System.Windows.Forms.ComboBox cbbdep;
    private System.Windows.Forms.Label label4;
    private System.Windows.Forms.ComboBox cbbsex;
    private System.Windows.Forms.Label label3;
    private System.Windows.Forms.TextBox txtName;
    private System.Windows.Forms.Label label2;
    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.RadioButton radioButton1;
    private System.Windows.Forms.RadioButton radioButton2;
    private System.Windows.Forms.GroupBox groupBox2;
    private System.Windows.Forms.ComboBox cbbShowDep;
    private System.Windows.Forms.Label label5;
    private System.Windows.Forms.ComboBox cbbShowSex;
    private System.Windows.Forms.Label label6;
    private System.Windows.Forms.TextBox txtShowName;
    private System.Windows.Forms.Label label7;
    private System.Windows.Forms.TextBox txtShowCardID;
    private System.Windows.Forms.Label label8;
    private System.Windows.Forms.TextBox txtIdcard;
}

需要的再直接Call我下方卡片,直接发。

👉其他

📢作者:小空和小芝中的小空
📢转载说明-务必注明来源:https://zhima.blog.csdn.net/
📢这位道友请留步☁️,我观你气度不凡,谈吐间隐隐有王者霸气💚,日后定有一番大作为📝!!!旁边有点赞👍收藏🌟今日传你,点了吧,未来你成功☀️,我分文不取,若不成功⚡️,也好回来找我。

温馨提示点击下方卡片获取更多意想不到的资源。
空名先生

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/135662.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Vlan的原理与配置

传统以太网的问题 规模大了&#xff0c;之后导致性能也很差&#xff0c;广播会增加 解决&#xff1a;用Vlan&#xff0c;不受地域限制&#xff0c;同一Vlan内的设备才能直接进行二层通信 实验 首先配置以上vlan与电脑ip 配置IP之后可以进行ping命令测试刚开始是连通的&#x…

计算机视觉实战----AlexNet网络及使用colab跑YoloV5代码

系列文章目录 文章目录系列文章目录前言一、用colab薅羊毛二、使用百度飞浆操作三、二、使用步骤1.引入库2.读入数据总结前言 一、用colab薅羊毛 Colaboratory 简称“Colab”&#xff0c;是 Google Research 团队开发的一款产品。在 Colab 中&#xff0c;任何人都可以通过浏览…

分享107个PHP源码,总有一款适合您

链接&#xff1a;https://pan.baidu.com/s/1Su77mBUx87vk0lzSLyvnyw?pwdyo96 提取码&#xff1a;yo96 PHP源码 分享107个PHP源码&#xff0c;总有一款适合您 page_count 1 # 每个栏目开始业务content"text/html; charsetgb2312"base_url "https://down.c…

基于 Spring Boot 的 RESTful API 设计与实现

RESTful 是一种规范&#xff0c;符合 RESTful 的 Api 就是 RESTful Api。简单的说就是可联网设备利用 HTTP 协议通过 GET、POST、DELETE、PUT、PATCH 来操作具有 URI 标识的服务器资源&#xff0c;返回统一格式的资源信息&#xff0c;包括 JSON、XML、CSV、ProtoBuf、其他格式。…

OpenVINS 官方文档 第一部分

参考链接&#xff1a;OpenVINS https://docs.openvins.com/index.html 1. Getting Started 欢迎来到OpenVIINS项目&#xff01;以下指南将帮助新用户下载软件并在我们支持的数据集上运行。此外&#xff0c;我们还提供有关如何在我们的系统上运行您自己的传感器的信息&#xff0…

《500强高管谈VE价值工程》-对经营变革期下VE的期待

文章出处&#xff1a;日本VE协会杂志 文章翻译&#xff1a;泰泽项目部 关注泰泽&#xff1a;实现高利润企业 《500强高管谈VE价值工程》-对经营变革期下VE的期待 作者: 鹿岛建设常务董事小野馨喜 随着21世纪的到来&#xff0c;社会结构和经济环境正在发生重大转变&…

MobPush 创建推送

功能说明 MobPush提供遵循REST规范的HTTP接口&#xff0c;适用各开发语言环境调用。 IP绑定 工作台可以绑定服务器IP地址&#xff0c;未绑定之前所有IP均可进行REST API的调用&#xff0c;绑定后进仅绑定的IP才有调用权限。 调用地址 POSThttp://api.push.mob.com/v3/push/c…

东南亚开年大促必爆商品;2023Lazada家居家饰需求品类来袭

为持续提升商家体验&#xff0c;保障经营效率&#xff0c;2023年Lazada平台将调整Birthday sale生日大促的活动时间节奏 2023年6个国家站点&#xff08;印尼、马来西亚、菲律宾、新加坡、泰国、越南&#xff09;均会将生日大促提前至2023年3月3日开始。 家居家饰需求清单&…

什么是快速排序?

本文首发自「慕课网」&#xff0c;想了解更多IT干货内容&#xff0c;程序员圈内热闻&#xff0c;欢迎关注&#xff01; 作者| 慕课网精英讲师 JdreamZhang 快速排序&#xff08;Quick Sort&#xff09;&#xff0c;是计算机科学与技术领域中非常经典的一种排序算法&#xff0…

华为云工程师HCIA——桌面云解决方案概述

一、桌面云解决方案概述 瘦终端和胖终端 瘦终端&#xff1a;提供屏幕&#xff0c;和很小的计算能力胖终端&#xff1a;提供主要计算能力 桌面云架构VDI与IDV 华为桌面云解决方案逻辑架构 FusionCompute云平台架构 桌面云的优势 二、桌面云组件介绍 接入和访问控制层 WI&…

图像处理(2)——图像特征提取LBP

图像处理&#xff08;2&#xff09;——图像特征提取LBP 其实现在大家都说图像处理&#xff0c;其实计算机是不认识图片的&#xff0c;之所以可以处理图像&#xff0c;其实图像就是一个个矩阵&#xff0c;其实是数字&#xff0c;转而其实都是在处理数字。深度学习在图像上的建…

数字图像处理实验——数字图像处理初步

一、实验目的与要求 1.熟悉及掌握在MATLAB中能够处理哪些格式的图像&#xff1b; 2.熟练掌握在MATLAB中如何读取图像及图像的属性信息&#xff08;大小、颜色、亮度&#xff08;灰度&#xff09;、宽度、高度等&#xff09;&#xff1b; 3.掌握如何在MATLAB中按照指定要求存储一…

Windows 内核安全编程技术实践

《Windows 内核安全编程技术实践》&#xff0c;这是一本Windows 10内核安全开发系列丛书&#xff0c;探索 AntiRootKit 反内核工具核心原理与技术实现细节&#xff0c;揭开ARK工具的神秘面纱&#xff0c;本书以实战角度出发摒弃了大量无用的专业术语&#xff0c;欢迎阅读并提出…

在Qt中设置窗体背景颜色及透明度的方法介绍

本文主要介绍在 Qt 中设置窗体背景颜色及透明度的方法。 说明&#xff1a; 本文中的应用程序是面向 Windows 操作系统的&#xff1b;本文中使用的 Qt Creator 版本号为&#xff1a;7.0.0&#xff1b;本文中使用的 Qt 版本号为&#xff1a;5.14.2。 1 利用样式表&#xff08;S…

Github每日精选(第82期):还在用logging试试loguru

Loguru 如果你还在使用logging&#xff0c;不妨花点时间来看看Loguru&#xff0c;Loguru是一个Python日志记录的库。 您是否曾懒于配置记录器而使用print&#xff08;&#xff09;&#xff1f;。。。 我确实这样做了&#xff0c;但日志记录对于每个应用程序来说都是基本的&a…

Redis集群系列十二 —— 故障转移二

场景 模拟集群中有一个 master 宕机场景。 故障转移自动故障转移和手动故障转移。 自动故障转移 打开日志监控 为了更好折查看效果&#xff0c;通过 watch 命令实时查看集群的动态日志变化&#xff0c;如图&#xff1a; watch redis-cli -p 30001 cluster nodes 注意&#…

用SQL语句进行数据库查询(复杂查询)

前言 &#x1f388;个人主页:&#x1f388; :✨✨✨初阶牛✨✨✨ &#x1f43b;推荐专栏: &#x1f354;&#x1f35f;&#x1f32f; c语言初阶 &#x1f511;个人信条: &#x1f335;知行合一 &#x1f349;本篇简介:>:上一篇学习了如何使用SQL语句进行简单的数据查询,本篇…

C++ 简单工厂模式 与 工厂模式

简单工厂模式&#xff1a; 一个工厂&#xff0c;多个产品。产品需要有一个虚基类。通过传入参数&#xff0c;生成具体产品对象&#xff0c;并利用基类指针指向此对象。通过工厂获取此虚基类指针&#xff0c;通过运行时多态&#xff0c;调用子类实现。 注意&#xff1a;简单工厂…

S32K144—autoMBD是什么?

基于模型的设计&#xff08;Model-Based Design&#xff0c;MBD&#xff09;是一项非常具有发展潜力的技术&#xff0c;autoMBD 致力于分享和传播 MBD 相关技术&#xff0c;让更多人可以快速、高效地在项目开发中使用 MBD。 MBD能做什么&#xff1f; 从大的范围来说&#xff…

14 Python 办公自动化

目录 1、普通文件自动化管理 1.1 文件的复制 1.2 文件内容的复制 1.3 文件的裁剪 1.4 文件的删除 1.5 文件的压缩与解压缩 1.6 文件的查找 1.7 查找含有指定内容的文件 1.8 清理重复的文件 1.9 批量修改目录中的文件名称 2、文件夹的自动化管理 2.1 文件夹的复制 …