Tag: python


Fri Mar 28 2025
1043 words · 4 minutes

PyTorch 中划分训练集和测试集的方法

详细介绍在 PyTorch 中使用 random_split、Subset 以及 sklearn 的 train_test_split 划分数据集的三种方法

Fri Mar 28 2025
712 words · 3 minutes

Python 获取字典中最大 Value 及其 Key 的方法

介绍几种在 Python 中快速获取字典最大值及其对应键的高效方法

Sat Mar 01 2025 教程
2552 words · 11 minutes

Python 装饰器完全指南

从零开始深入理解 Python 装饰器的原理、使用场景和最佳实践,包含实战代码示例