摘要: 解决方法 重新生成 .resx 文件 1.备份 Launcher.resx 的内容(用文本编辑器打开,它是 XML 格式)。 2.删除原文件,然后在 Visual Studio 中: 右键项目 → 添加 → 新建项 → 资源文件 (.resx)。 重新编译。 阅读全文
posted @ 2025-11-10 10:52 三石PY 阅读(9) 评论(0) 推荐(0)
摘要: 1.使用命令生成一个文件 migration5 add-migration migration5 2.把之前migration1中生成表的数据复制过来 public override void Up() { CreateTable( "dbo.User_Table", c => new { ID = 阅读全文
posted @ 2025-01-22 10:20 三石PY 阅读(22) 评论(0) 推荐(0)
摘要: static void Main(string[] args) { List<int> users = new List<int>() { 1,2,3,4,5,1,2,3,4,5 }; var count = users.Count; users = new HashSet<int>(users). 阅读全文
posted @ 2025-01-18 16:54 三石PY 阅读(8) 评论(0) 推荐(0)
摘要: 柱形图 柱形图通常用于直观的对比数据,在实际工作中使用频率很高,在Matplotlib中可以通过bar()即可绘制出柱形图。 plt.bar([1, 2, 3, 4], [1, 4, 2, 3], color=(0.2, 1.0, 1.0), width=0.5) # 绘制图像 plt.show() 阅读全文
posted @ 2024-12-31 21:37 三石PY 阅读(30) 评论(0) 推荐(0)
摘要: 操作布尔数组 使用np.count_nonzero函数统计布尔数组中True记录的个数 print('x: \n', x) print('x < 6 : \n', x < 6) print('x < 6 的个数:', np.count_nonzero(x < 6)) np.sum(x < 6)中Fa 阅读全文
posted @ 2024-12-28 00:24 三石PY 阅读(42) 评论(0) 推荐(0)
摘要: np.array([1, 2, 3]) array([1, 2, 3]) b = np.array([1, 2, 3, 4], dtype = 'float') [1. 2. 3. 4.] c = np.array([range(i, i + 3) for i in [2, 4, 6]]) arra 阅读全文
posted @ 2024-12-26 22:35 三石PY 阅读(13) 评论(0) 推荐(0)
摘要: 删: df2.dropna() df2.dropna(subset=['消费','姓名']) 数据填充: df.fillna(0)填充0 df.fillna({'客单价':666,'支付金额':df['支付金额'].min()}) df.drop_duplicates()//去重 删除所有行 df. 阅读全文
posted @ 2024-12-26 20:45 三石PY 阅读(13) 评论(0) 推荐(0)