摘要:
仅仅做个笔记,熟悉的人请飘过 一、管理员的形式进入命令行,pip install pipenv 当然了,在这之前需要先把python环境装好。 二、进入项目文件夹,执行:pipenv install 绑定项目 三、激活项目的虚拟环境,执行:pipenv shell 四、查看在项目里有哪些包,执行: pip list 五、安装flask,执行:pipenv in... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Security.Cryptography; namespace SHA加密练习1{ class Program { static void Main(string[] args) ... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Security.Cryptography; namespace MD5加密练习1{ class Program { static void Main(string[] args)... 阅读全文
摘要:
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;using System.IO; namespa... 阅读全文
摘要:
DataGridView控件中的各种事件都无法直接响应Cell中内容的变化,包括KeyPress等事件,可以采用下面方法 无法响应Cell中的回车键 private void dataGridViewBarcode_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { if (e.C... 阅读全文
摘要:
1 Aspose.Cells.License li = new Aspose.Cells.License(); 2 li.SetLicense("Aspose.Cells.lic"); 3 Aspose.Cells.Workbook wk = new Aspose.Cells.Workbook(); 4 W... 阅读全文
摘要:
C# -- 文件的压缩与解压(GZipStream) 文件的压缩与解压 需引入 System.IO.Compression; 1.C#代码(入门案例) 1 Console.WriteLine("压缩文件..............."); 2 using (FileStream fr = File.OpenRead("d:\\test.txt"... 阅读全文
摘要:
private void button1_Click_1(object sender, EventArgs e) { Form2 form = new Form2(); form.FormBorderStyle = FormBorderStyle.None; form.TopLevel = false; ... 阅读全文
摘要:
//遍历TextBox控件 foreach (Control item in this.Controls) { if (item is TextBox) { item.Text = ""; } } 阅读全文
摘要:
序列化对象 public string SerializeObject(object obj) { IFormatter formatter = new BinaryFormatter(); string result = string.Empty; using (MemoryStream stream = new MemoryStream(... 阅读全文