C#项目实战

事件
public delegate void NumManipulationHandler(NumEventArgs e);
// 基于上面的委托定义事件
public event NumManipulationHandler ChangeNum;
 public class Program
    {
        public static void Main()
        {

            NumEvent even = new NumEvent(0);
            even.ChangeNum += EventAction.Action;

            even.SetValue(7);
            even.SetValue(11);

            System.Console.ReadKey();
        }
    }

    public class NumEvent
    {
        private int value;

        public delegate void NumManipulationHandler(NumEventArgs e);

        public event NumManipulationHandler ChangeNum;

        public virtual void OnChangeNum(NumEventArgs e)
        {
            ChangeNum?.Invoke(e);
        }

        public NumEvent(int n)
        {
            SetValue(n);
        }

        public void SetValue(int n)
        {
            if (value != n)
            {
                NumEventArgs e = new NumEventArgs(n);
                value = n;
                OnChangeNum(e);
            }
        }
    }

    public class EventAction
    {
        public static void Action(NumEventArgs e)
        {
            System.Console.WriteLine("value : " + e.value);
        }
    }

    public class NumEventArgs : EventArgs
    {
        public int value;
        public NumEventArgs(int _value)
        {
            this.value = _value;
        }
    }
ini读写 
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Linq;
using System.Text;

namespace DEMOBus
{
    public class IniFile
    {
        private string m_FileName;

        public string FileName
        {
            get { return m_FileName; }
            set { m_FileName = value; }
        }

        [DllImport("kernel32.dll")]
        private static extern int GetPrivateProfileInt(
            string lpAppName,
            string lpKeyName,
            int nDefault,
            string lpFileName
            );

        [DllImport("kernel32.dll")]
        private static extern int GetPrivateProfileString(
            string lpAppName,
            string lpKeyName,
            string lpDefault,
            StringBuilder lpReturnedString,
            int nSize,
            string lpFileName
            );

        [DllImport("kernel32.dll")]
        private static extern int WritePrivateProfileString(
            string lpAppName,
            string lpKeyName,
            string lpString,
            string lpFileName
            );

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="aFileName">Ini文件路径</param>
        public IniFile(string aFileName)
        {
            this.m_FileName = aFileName;
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        public IniFile()
        { }

        /// <summary>
        /// [扩展]读Int数值
        /// </summary>
        /// <param name="section">节</param>
        /// <param name="name">键</param>
        /// <param name="def">默认值</param>
        /// <returns></returns>
        public int ReadInt(string section, string name, int def)
        {
            return GetPrivateProfileInt(section, name, def, this.m_FileName);
        }

        /// <summary>
        /// [扩展]读取string字符串
        /// </summary>
        /// <param name="section">节</param>
        /// <param name="name">键</param>
        /// <param name="def">默认值</param>
        /// <returns></returns>
        public string ReadString(string section, string name, string def)
        {
            StringBuilder vRetSb = new StringBuilder(2048);
            GetPrivateProfileString(section, name, def, vRetSb, 2048, this.m_FileName);
            return vRetSb.ToString();
        }

        /// <summary>
        /// [扩展]写入Int数值,如果不存在 节-键,则会自动创建
        /// </summary>
        /// <param name="section">节</param>
        /// <param name="name">键</param>
        /// <param name="Ival">写入值</param>
        public void WriteInt(string section, string name, int Ival)
        {

            WritePrivateProfileString(section, name, Ival.ToString(), this.m_FileName);
        }

        /// <summary>
        /// [扩展]写入String字符串,如果不存在 节-键,则会自动创建
        /// </summary>
        /// <param name="section">节</param>
        /// <param name="name">键</param>
        /// <param name="strVal">写入值</param>
        public void WriteString(string section, string name, string strVal)
        {
            WritePrivateProfileString(section, name, strVal, this.m_FileName);
        }

        /// <summary>
        /// 删除指定的 节
        /// </summary>
        /// <param name="section"></param>
        public void DeleteSection(string section)
        {
            WritePrivateProfileString(section, null, null, this.m_FileName);
        }

        /// <summary>
        /// 删除全部 节
        /// </summary>
        public void DeleteAllSection()
        {
            WritePrivateProfileString(null, null, null, this.m_FileName);
        }

        /// <summary>
        /// 读取指定 节-键 的值
        /// </summary>
        /// <param name="section"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        public string IniReadValue(string section, string name)
        {
            StringBuilder strSb = new StringBuilder(256);
            GetPrivateProfileString(section, name, "", strSb, 256, this.m_FileName);
            return strSb.ToString();
        }

        /// <summary>
        /// 写入指定值,如果不存在 节-键,则会自动创建
        /// </summary>
        /// <param name="section"></param>
        /// <param name="name"></param>
        /// <param name="value"></param>
        public void IniWriteValue(string section, string name, string value)
        {
            WritePrivateProfileString(section, name, value, this.m_FileName);
        }
    }
}
绘图 
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace _949CS//实时曲线绘制
{
    class draw
    {
        public List<Point> ptlist = new List<Point> { new Point(0, 0)};
        public PictureBox picbox = new PictureBox();
        public Bitmap mybitmap;//用于双缓冲的位图,和画布等大
        public Int32 xMoveToUp = 0, yMoveToRight = 0;     //X上移距离与Y右移距离
        public Int32 xToLeft = 5, xToRight = 10, yToUp = 5, yToDown = 5; //XY图像边距,x轴起点离左边距,终点右边距,y轴起点下边距,上边距,Y轴坐标为从上往下递增值
        public void DrawLineS(Color color, float Xmax, float Ymax)
        {
            if (ptlist.Count < 2)
            {//空返回
                return;
            }
            mybitmap = new Bitmap(picbox.Width, picbox.Height);//设定位图大小
            Graphics doublebufferg = Graphics.FromImage(mybitmap);//从位图上获取“画布”
            doublebufferg.Clear(Color.Black);//用背景色刷新

            //picbox填充为白色,便于显示图像  500*300
            Rectangle rect = new Rectangle(0, 0, picbox.Width, picbox.Height);
            doublebufferg.FillRectangle(new SolidBrush(Color.Black), rect);
             
            //画X和Y轴
            DrawXY(ref doublebufferg, picbox);
            //X轴上的刻度
            SetYAxis(ref doublebufferg, picbox, Ymax);
            //Y轴上的刻度
            SetXAxis(ref doublebufferg, picbox, Xmax);

            Point[] pt = ptlist.ToArray();
            Int32 i = 0;
            for (i = 0; i < pt.Length; i++)
            {
                pt[i].X += xToLeft + yMoveToRight;//自定义坐标转换
                pt[i].Y = picbox.Height - yToDown - xMoveToUp - pt[i].Y;
                if (i > 0)
                {
                    //要显示的实时曲线部分
                    doublebufferg.DrawLine(new Pen(color, 1), pt[i - 1], pt[i]);
                }
            }
            //将缓冲中的位图绘制到我们的窗体上
            if (!picbox.IsDisposed)
            {   //是够释放
                picbox.BackColor = Color.Black;     //背景色直接设置
                (picbox.CreateGraphics()).DrawImage(mybitmap, 0, 0);
            }
        } 
        //X上移
        public void  SetMoveX(Int32 x)
        {
            xMoveToUp = x;
        }
        //Y右移
        public void  SetMoveY(Int32 y)
        {
            yMoveToRight = y;
        }
        //完成X轴和Y轴的基本部分
        public void  DrawXY(ref Graphics g,PictureBox picbox)
        {
            Pen pen = new Pen(Color.White, 2);//画笔
            SolidBrush sb = new SolidBrush(Color.White);//话刷
            
            //X轴的箭头,实际上是绘制了一个三角形
            Int32 arrorWidth = 5, arrorHeight = 2;   //箭头的三角形中位线长与底边长一半
            Point[] xpts = new Point[3] {   //自定义坐标转换
                new Point(picbox.Width - (xToRight + arrorWidth), picbox.Height - (arrorHeight + yToDown + xMoveToUp)),
                new Point(picbox.Width - xToRight, picbox.Height - yToDown - xMoveToUp),
                new Point(picbox.Width - (xToRight + arrorWidth), picbox.Height + arrorHeight - yToDown - xMoveToUp)
                                        };

            g.DrawLine(pen, xToLeft, picbox.Height - yToDown - xMoveToUp, picbox.Width - xToRight, picbox.Height - yToDown - xMoveToUp);
            g.DrawPolygon(pen, xpts);//自定义坐标转换
            g.DrawString("X", new Font("宋体", 11), sb, picbox.Width - (xToRight), picbox.Height - (yToDown + xMoveToUp));

            //Y轴的箭头,实际上是绘制了一个三角形
            Point[] ypts = new Point[3] { //自定义坐标转换
                     new Point(xToLeft + yMoveToRight - arrorHeight, yToUp + arrorHeight),
                     new Point(xToLeft + yMoveToRight, yToUp), 
                     new Point(xToLeft + yMoveToRight + arrorHeight, yToUp + arrorHeight)
                      };

            g.DrawLine(pen, xToLeft + yMoveToRight, picbox.Height - yToDown, xToLeft + yMoveToRight, yToUp);
            g.DrawPolygon(pen, ypts);//自定义坐标转换
            g.DrawString("Y", new Font("宋体", 11), sb, yMoveToRight + xToLeft + arrorHeight, 0);
        
        }

        //绘制Y轴上的刻度
        public void SetYAxis(ref Graphics g,PictureBox picbox, float YMAX)
        {
            Pen p1 = new Pen(Color.Goldenrod, 1);
            Pen p2 = new Pen(Color.White, 2);
            SolidBrush sb = new SolidBrush(Color.White);

            float ykedu = YMAX / 200;//给定的最大刻度与实际像素的比例关系=,未优化,目前为1:1
            //第一个刻度的两个端点
            float xl = xToLeft - 3 + yMoveToRight, yl = picbox.Height - yToUp, xr = xToLeft + 3 + yMoveToRight, yr = picbox.Height - yToDown;//自定义坐标转换
            for (int j = 0; j < picbox.Height - (yToDown + yToUp); j += 10)
            {
                if (j % 50 == 0)//一个大的刻度,黑色,每隔50像素一个
                {
                    g.DrawLine(p2, xl, yl - j, xr, yl - j);//刻度线
                    string tempy = ((j - xMoveToUp - yToDown) * ykedu).ToString();//自定义坐标转换
                    g.DrawString(tempy, new Font("宋体", 8), sb, xl - 20, yl - j - 5);
                }
                else//小刻度,金黄色,10像素一个
                { g.DrawLine(p1, xl, yl - j, xr, yl - j); }
            }
        }



        //绘制x轴上的刻度
        public void SetXAxis(ref Graphics g,PictureBox picbox, float XMAX)
             {
              Pen p1 = new Pen(Color.Goldenrod, 1);
              Pen p2 = new Pen(Color.White, 2);
              SolidBrush sb = new SolidBrush(Color.White);

              float xkedu = XMAX / 400;  //比例关系未优化,目前为1:1
              float xt = xToLeft, yt = picbox.Height - yToDown - 3 - xMoveToUp, xb = xToLeft, yb = picbox.Height - yToDown + 3 - xMoveToUp;
              //自定义坐标转换
              for (int i = 0; i < picbox.Width - (xToLeft + xToRight); i += 10)
            {

                if (i % 50 == 0)
                {
                    g.DrawLine(p2, xt + i, yt, xb + i, yb);
                    string tempx = ((i - yMoveToRight - xToLeft) * xkedu).ToString();//自定义坐标转换
                    g.DrawString(tempx, new Font("宋体", 8), sb, xt + i - 7, picbox.Height - 25 - xMoveToUp);
                }
                else 
                { g.DrawLine(p1, xt + i, yt, xb + i, yb); }
            }
             }
        
        }

    }

CListCtrlEx重载 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace ADT_LISTVIEW
{
    enum LIST_TYPE
    {
        NO_TYPE = -1,
        EDIT_TYPE = 0,
        CBO_TYPE = 1,
    }
    class ListViewEx : ListView
    {
        private TextBox m_tb;
        private ComboBox m_cb;
        private bool m_bCheckBox;
        private Int32[ ] m_lst = new Int32[20];     //支持最大列数20
        private string[] m_str = new string[20];       //最大列字符串20
        public void SetChekBox(bool bCheck)
        { m_bCheckBox = bCheck; }
        public void AddCboString(String str) {
            string[] param = str.Split(':');
            m_cb.Items.Clear();
            foreach (string i in param)
            {
                m_cb.Items.Add(i);
            }
            m_cb.SelectedIndex = 0;
        }
        public void SetListType(int nIndex, int type)
        {
            m_lst[nIndex] = type;        }
        public int FindStringInCbo(int nCol, string str)
        {
            if (m_lst[nCol] != 1)
            {
                return -1;
            }
            else
            {
                AddCboString(m_str[nCol]);
                return m_cb.FindString(str, -1);
            }
        }
        public ListViewEx()
        {
            m_tb = new TextBox();
            m_cb = new ComboBox();
            m_tb.Multiline = false;
            m_tb.Visible = false;
            m_cb.Visible = false;
            m_cb.DropDownStyle = ComboBoxStyle.DropDownList;
            m_cb.IntegralHeight = true;
            this.GridLines = true;
            this.CheckBoxes = true;
            this.FullRowSelect = false;
            SetChekBox(this.CheckBoxes);
            this.Controls.Add(m_tb);
            this.Controls.Add(m_cb);
            for (int i = 0; i < 20; i++)
            {
                SetListType(i, 0);
            }
            SetStyle(ControlStyles.DoubleBuffer | ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);  //解决ListView闪烁问题
        }
        public void Insert(int nIndex, ListViewItem item)
        {
            for (int i = 0; i < item.SubItems.Count; i++ )
            {   //保存所有列字符——最多20
                m_str[i] = item.SubItems[i].Text;
                if (m_str[i].IndexOf(':') > 0)
                {
                    SetListType(i, 1);
                    AddCboString(m_str[i]);
                    item.SubItems[i].Text = m_cb.Text;
                }
                else
                {
                    SetListType(i, 0);
                }
            }
            this.Items.Insert(nIndex, item);
        }
        private void EditItem(ListViewItem.ListViewSubItem subItem)
        {
            if (this.SelectedItems.Count <= 0)
            {
                return;
            }
            Rectangle _rect = subItem.Bounds;
            m_tb.Bounds = _rect;
            ListViewItem lvi = this.SelectedItems[0];   //选中的多行第0行
            if (subItem == lvi.SubItems[0] || 0 == subItem.Bounds.X)
            {   //第一列为复选框
                if (m_bCheckBox)
                {
                    return;
                }
                else
                {   //修复宽度
                    m_tb.Width = this.Columns[0].Width;
                }
            }
            m_tb.BringToFront();
            m_tb.Text = subItem.Text;
            m_tb.Leave += new EventHandler(tb_Leave);
            m_tb.TextChanged += new EventHandler(m_tb_TextChanged);
            m_tb.Visible = true;
            m_tb.Tag = subItem;
            m_tb.Select();
        }

        private void EditItem(ListViewItem.ListViewSubItem subItem, Rectangle rt)
        {
            if (this.SelectedItems.Count <= 0)
            {
                return;
            }
            Rectangle _rect = rt;
            m_cb.Bounds = _rect;
            m_cb.BringToFront();
           // m_cb.Items.Add(subItem.Text);
            m_cb.Text = subItem.Text;
            m_cb.Leave += new EventHandler(lstb_Leave);
            m_cb.TextChanged += new EventHandler(m_lstb_TextChanged);
            m_cb.DropDownClosed += new EventHandler(m_lstb_TextChanged);
            m_cb.DropDown += new EventHandler(m_lstb_DropDown);
            m_cb.LostFocus += new EventHandler(lstb_Lost);
            m_cb.Visible = true;
            m_cb.Tag = subItem;
            m_cb.Select();
        }

        protected override void OnKeyDown(KeyEventArgs e)
        {
//             if (e.KeyCode == Keys.F2)
//             {
// 
//                 if (this.SelectedItems.Count > 0)
//                 {
//                     this.SelectedItems[1].BeginEdit();
//                     ListViewItem lvi = this.SelectedItems[0];
//                     EditItem(lvi.SubItems[0], new Rectangle(lvi.Bounds.Left, lvi.Bounds.Top, this.Columns[0].Width, lvi.Bounds.Height - 2));
//                 }
//             }
            base.OnKeyDown(e);
        }

        protected override void OnSelectedIndexChanged(EventArgs e)
        {
            this.m_tb.Visible = false;
            this.m_cb.Visible = false;
            base.OnSelectedIndexChanged(e);
        }
        protected override void OnDoubleClick(EventArgs e)
        {
            Point tmpPoint = this.PointToClient(Cursor.Position);
            ListViewItem.ListViewSubItem subitem = this.HitTest(tmpPoint).SubItem;
            ListViewItem item = this.HitTest(tmpPoint).Item;
            if (subitem != null)
            {
                int nIndex = 0;
                item.Checked = !item.Checked;       //修复双击时反选功能
                if (0 == subitem.Bounds.X)
                {//修复第一列
                    nIndex = 0;
                }
                else
                {
                    nIndex = this.SelectedItems[0].SubItems.IndexOf(subitem);
                    if (nIndex > this.Columns.Count)
                    {   //修复频繁点击时索引不更新bug
                        base.OnDoubleClick(e);
                        return;
                    }
                 }
                if (0 == m_lst[nIndex])
                 {  //类型选择,编辑框
                     EditItem(subitem);
                 }
                else if (1 == m_lst[nIndex])
                 {  //组合框
                     AddCboString(m_str[nIndex]);
                     EditItem(subitem, new Rectangle(subitem.Bounds.Left, subitem.Bounds.Top, this.Columns[nIndex].Width, subitem.Bounds.Height - 2));
                 }
                else
                {
                    ;
                }
                //item.Checked = !item.Checked;
            }
            base.OnDoubleClick(e);
        }
//         protected override void OnDrawColumnHeader(DrawListViewColumnHeaderEventArgs e)
//         {
//             m_cb.Hide();
//             base.OnDrawColumnHeader(e);
//         }
        protected override void WndProc(ref   Message m)
        {
            if (m.Msg == 0x115 || m.Msg == 0x114)
            {
                this.m_tb.Visible = false;
                this.m_cb.Visible = false;
            }
            base.WndProc(ref   m);
        }

        private void tb_Leave(object sender, EventArgs e)
        {
            m_tb.TextChanged -= new EventHandler(m_tb_TextChanged);
            (sender as TextBox).Visible = false;
        }

        private void m_tb_TextChanged(object sender, EventArgs e)
        {
            if ((sender as TextBox).Tag is ListViewItem.ListViewSubItem)
            {
                (this.m_tb.Tag as ListViewItem.ListViewSubItem).Text = this.m_tb.Text;
            }

        }
        private void lstb_Leave(object sender, EventArgs e)
        {
            m_cb.TextChanged -= new EventHandler(m_lstb_TextChanged);
            m_cb.DropDownClosed -= new EventHandler(m_lstb_TextChanged);
            m_cb.DropDownClosed -= new EventHandler(m_lstb_DropDown);
            m_cb.DropDown -= new EventHandler(m_lstb_DropDown);
            m_cb.LostFocus -= new EventHandler(lstb_Lost);
        }

        private void m_lstb_TextChanged(object sender, EventArgs e)
        {
            if ((sender as ComboBox).Tag is ListViewItem.ListViewSubItem)
            {
                (this.m_cb.Tag as ListViewItem.ListViewSubItem).Text = this.m_cb.Text;
            }
        }
        private void m_lstb_DropDown(object sender, EventArgs e)
        {
            if ((sender as ComboBox).Tag is ListViewItem.ListViewSubItem)
            {
                this.m_cb.Text = (this.m_cb.Tag as ListViewItem.ListViewSubItem).Text;
            }
        }
        private void lstb_Lost(object sender, EventArgs e)
        {
            m_cb.Hide();    //隐藏
            lstb_Leave(sender, e);
        }
        
    }
}

 

参考

FastTunnel: 开源免费跨平台 内网穿透 远程内网电脑 自定义域名访问内网站点 反向代理内网服务 http代理 类花生壳 端口转发 微信 小程序 frp NAT ssh proxy tunnel ngork

GitHub - HandyOrg/HandyControl: Contains some simple and commonly used WPF controls 

https://github.com/OfficeDev/Image-FileHandler

https://github.com/probot/no-response

https://github.com/dotnet/Open-XML-SDK

https://github.com/OfficeDev/PnP-WOPI

https://github.com/OfficeDev/Open-XML-SDK

https://github.com/OfficeDev/Excel-IO

GitHub - cnxy/files-uwp: A modern file explorer that pushes the boundaries of the platform.

GitHub - OfficeDev/office-fluent-ui-command-identifiers: Office Fluent User Interface Control Identifiers

Code of Conduct | Microsoft Open Source

https://github.com/CollaboratingPlatypus/PetaPoco

https://www.cnblogs.com/zhangweizhong/p/3718549.html

NuGet Gallery | PetaPoco 5.1.304

https://www.cnblogs.com/zhangweizhong/category/855479.html

https://www.cnblogs.com/zhangweizhong/category/771056.html

https://github.com/LonelyCodelang?tab=repositories

https://worktile.com/share/files/64a3b9c8ec0a4d3d81b89a630177c880

https://github.com/statianzo/PostLog

https://www.cnblogs.com/zhangweizhong/category/771055.html

https://github.com/statianzo/Fleck

https://github.com/EasyHttp/EasyHttp

GitHub - Tencent/xLua: xLua is a lua programming solution for C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc.

QJ_FileCenter: 企捷Lotus文件管理平台是开源文档管理平台/企业网盘,支持企业文件、个人文件等文件分库管理,平台能够满足统一存储、文件共享功能。并提供文件上传、目录维护、重命名、移动、复制、删除、预览、等功能。

需ngnix反向代理,账号admin,密码abc123.搭建个人云盘

企捷科技 - 企捷科技

https://gitee.com/dotnetchina/BootstrapAdmin

dotNET China: 让 .NET 开发更简单,更通用,更流行。

GitHub - files-community/Files: Building the best file manager for Windows

GitHub - MMmmmoko/Bongo-Cat-Mver: An Bongo Cat overlay written in C++


创作不易,小小的支持一下吧!

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

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

【全篇】C语言从入门到入土

【全篇】C语言从入门到入土 文章目录 【全篇】C语言从入门到入土第一章 前言如何去学习&#xff0c;学习方法论 第二章 初识1.代码编译工具2.c程序的基础框架3.数据的表现形式变量1.要先定义后使用&#xff08;变量名的定义是由自己决定的&#xff0c;一般倾向于顾文生义&#…

Python基础教程(九):Lambda 函数

&#x1f49d;&#x1f49d;&#x1f49d;首先&#xff0c;欢迎各位来到我的博客&#xff0c;很高兴能够在这里和您见面&#xff01;希望您在这里不仅可以有所收获&#xff0c;同时也能感受到一份轻松欢乐的氛围&#xff0c;祝你生活愉快&#xff01; &#x1f49d;&#x1f49…

道路堵塞监测识别摄像机

道路堵塞监测识别摄像机是现代城市交通管理的重要利器&#xff0c;其功能多样、效果显著&#xff0c;对缓解交通拥堵、提高通行效率有着重要作用。 该摄像机采用高清摄像头&#xff0c;能够实时捕捉道路上的交通情况。无论是车辆密度还是行驶速度&#xff0c;都能清晰记录&…

从零手写实现 nginx-17-nginx.conf 全局的默认配置

前言 大家好&#xff0c;我是老马。很高兴遇到你。 我们为 java 开发者实现了 java 版本的 nginx https://github.com/houbb/nginx4j 如果你想知道 servlet 如何处理的&#xff0c;可以参考我的另一个项目&#xff1a; 手写从零实现简易版 tomcat minicat 手写 nginx 系列 …

Android Studio历史版本

android studio的历史版本

BCZYYb(钡铈锆钇镱)主要用作电解质 我国技术研究与生产步伐正在加快

BCZYYb&#xff08;钡铈锆钇镱&#xff09;主要用作电解质 我国技术研究与生产步伐正在加快 BCZYYb&#xff0c;钡铈锆钇镱氧化物&#xff0c;钙钛矿结构&#xff0c;外观为白色至浅黄色粉末状&#xff0c;主要用作电解质&#xff0c;功能是传输离子&#xff0c;具有化学稳定性…

Python 基础语法详解(五)

Python 基础语法详解&#xff08;五&#xff09; Python 循环语句14.1 while 循环实操&#xff1a;①重要命令&#xff1a;continue 和 break②while 循环使用 else 语句实操&#xff1a;③pass 语句 14.2 for 循环实操&#xff1a;①上实操——通过索引序列迭代元素②for 循环…

OCP-042之:Oracle实例管理

2. Oracle实例管理 2.1 Instance管理 Oracle实例(instance)是一组Oracle后台进程和内存结构的集合。 后台进程主要包括SMON,PMON,DBWR,CKPT和LGWR等;内存结构包括数据库高速缓冲区、重做日志缓冲区、共享池、大池等组成系统全局区(SGA)的重要组件。实例主要实现对数据库的…

我开发了一款只用一个注解就实现统计访问量的工具框架

大家有可能在实际开发项目中会遇到这样的情况。实现计数器功能&#xff0c;比如统计网站访问量、用户点击次数等。大家有可能把它放在redis里面&#xff0c;也有可能把它放在MYSQL里面。但是这样大家都需要动手实现很多的代码。繁琐而复杂。于是我就想在 simple-cache框架中发布…

C#之EntityFramework的应用

目录 1&#xff0c;名词概述。 2&#xff0c;实体数据模型EDM介绍。 3&#xff0c;规范函数。 4&#xff0c;查看Linq转换成的SQL语句。 5&#xff0c;数据的增删改查。 5.1&#xff0c;数据查询 5.2&#xff0c;数据插入 5.3&#xff0c;数据更新 5.4&#xff0c;数据…

深入探索 Rust 的 clap 库:命令行解析的艺术

版本声明 Rust: 1.76clap: 4.5.1clap_complete 4.5.1rpassword: 7.3.1 结论先行 本文将从 CLI&#xff08;Command Line Interface&#xff09;命令行工具的概述讲起&#xff0c;介绍一个优秀的命令行工具应该具备的功能和特性。然后介绍 Rust 中一个非常优秀的命令行解析工…

8.1 基本打印功能

本文仅供学习交流&#xff0c;严禁用于商业用途&#xff0c;如本文涉及侵权请及时联系本人将于及时删除 在使用“MFC应用”项目模板生成应用程序的过程中&#xff0c;如果在“高级功能”窗口中不取消对打印和打印预览的设置&#xff0c;那么应用程序就已经具备了简单的打印和打…

Switch 之 配置SNMP

Description SNMP&#xff08;Simple Network Management Protocol&#xff0c;简单网络管理协议&#xff09;是一种用于网络管理的协议&#xff0c;它用于在网络中对设备进行监控和管理。 SNMP定义了一种管理框架&#xff0c;其中包括管理站、代理和管理信息库&#xff08;M…

今日早报 每日精选15条新闻简报 每天一分钟 知晓天下事 6月11日,星期二

每天一分钟&#xff0c;知晓天下事&#xff01; 2024年6月11日 星期二 农历五月初六 1、 文旅部发布数据&#xff1a;端午假期国内游出游1.1亿人次&#xff0c;游客总花费403.5亿元。 2、 水利部&#xff1a;11日至15日&#xff0c;江西、浙江、广东等6省份部分中小河流可能发…

war后门文件部署 什么是war后门文件 为什么要部署???看见war后门文件部署你知道????

在漏洞复现的时候做了一道war后门文件部署的&#xff0c;然后我们就要去了解什么是war包&#xff0c;然后这个漏洞实现要有什么情况&#xff1f;&#xff1f;为什么要进行部署&#xff1f;&#xff1f; war包在哪些地方可以实现&#xff1f;&#xff1f;&#xff1f; war是一种…

c语言编程

1. 2。 int main(int argc, const char *argv[]) { int year,month,day; int result0; printf("请输入&#xff1a;"); scanf("%d/%d/%d",&year,&month,&day); if(month>12||month<1) { printf("error \n"); return 0; } s…

AI大模型:未来5~10年的技术革命与机遇

引言 在当今科技飞速发展的时代&#xff0c;AI大模型无疑成为了一个热门话题。它不仅仅是一个技术名词&#xff0c;更是未来5&#xff5e;10年内不可避免的技术革命。AI大模型以其强大的数据处理能力、深度学习能力以及广泛的应用前景&#xff0c;正在改变我们的生活和工作方式…

LabVIEW输送机动态特性参数监测系统

开发了一套基于LabVIEW软件和STM32F103ZET6单片机的带式输送机动态特性参数监测系统。该系统通过电阻应变式压力传感器和光电编码器实时采集输送带的张力和带速信息&#xff0c;通过5G模块将数据传输至上位机&#xff0c;实现数据的可视化处理与实时预警&#xff0c;有效提高输…

C++系统编程篇——linux编译器 gcc/g++(链接动静态库)

linux编译器-gcc/g &#xff08;1&#xff09;g安装&#xff08;gcc一般自带&#xff0c;g需要下载&#xff09; sudo yum install -y gcc-c g --version gcc用于编译C语言代码&#xff0c;g用于编译C代码 &#xff08;2&#xff09;程序翻译过程 选项“-o”是指目标文件…

Java | Leetcode Java题解之第141题环形链表

题目&#xff1a; 题解&#xff1a; public class Solution {public boolean hasCycle(ListNode head) {if (head null || head.next null) {return false;}ListNode slow head;ListNode fast head.next;while (slow ! fast) {if (fast null || fast.next null) {return…