05 2024 档案

numpy.ndarray 如何转化为 list
摘要:vXmn.tolist() [[1,2], [1,2], [3,3],…] vXm1.tolist() [[1], [-1], [1]…] vXm1.reshape((m,)).tolist() [1, -1, 1] p.s: m 来自: (m, n) = vXm1.shape 阅读全文

posted @ 2024-05-23 09:33 norsd 阅读(8) 评论(0) 推荐(0) 编辑

c# 判断是否为null, 到底使用 “is null“ 还是 “==null“
摘要:判断是否为null 应该使用 is null 避免使用 “== null” 因为 后者可能调用 “operator ==” 另外1:C# 9.0 引入了 is not 另外2:有用的判断为null 后抛出异常的简洁语句: public static int CountNumberOfSInName( 阅读全文

posted @ 2024-05-15 13:59 norsd 阅读(137) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示