- 博客(5)
- 收藏
- 关注
原创 Java中数据默认值的问题
Java中数据默认值的问题java中对象的默认值为null,基础数据类型默认值为0。发现这一问题的缘由为:从derby中抽取null数值,转化为double类型时,自动转换为0;而转化为Double对象时,仍保留null。double类型是无法兼容null的。...
2022-04-06 11:15:02 1247
原创 C++ vector:一边使用iterator,一边erase会发生什么
今天看到了一段代码,觉得很神奇就仔细探究了一下,原代码如下:#include <cstdlib>#include <iostream>#include <vector>template<typename T>void f(std::vector<T> & v, const T & d) { typename std::vector<T>::iterator it = v.begin(); while
2021-10-19 13:53:38 242
原创 C++实现python string.split() 函数的基本功能
C++实现python string.split() 函数的基本功能#include <vector>#include <string>typedef std::vector<std::string> str_arr;str_arr str_split(std::string str, std::string pattern) { std::string::size_type pos; str_arr result; str += pa
2021-10-17 04:38:16 1075
原创 anaconda安装python3.5环境
现在anaconda默认安装python 3.8,然而在运行以前代码的时候发现无法支持tensorflow 2.2之前的版本,导致在运行包含keras和tklearn等与tensorflow相关的库的代码时出现错误,故想要多安装一个python 3.5的环境来跑之前的代码。在prompt中输入:>> md python35>> cd python35>> conda create -n python35 python=3.5 anaconda创建完环境后,使用
2020-11-20 15:34:43 3343
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人