自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 Java的输出print()/println()/printf()

java输出包含小数位的double型数据System.out.println("%.4f",d);报错:The method println(double) in the type PrintStream is not applicable for the arguments (String, double)原因:Java的输出中System是java.lang里面的一个类public final class Systemout是System里面的一个静态数据成员 ,out的类型是

2020-06-13 14:35:06 848

转载 (LeetCode)数数关系——Non-decreasing Array(非递减数组)

665.Non-decreasing ArrayEasy?!Given an array withnintegers, your task is to check if it could become non-decreasing by modifyingat most1element.We define an array is non-decreasing ifarra...

2020-05-29 13:38:43 186

原创 (备忘)NowCode牛客,输入Scanner的问题

输入两行,先数字后数字串512 8 36 9 20 int n=in.nextInt(); in.nextLine(); int[] heights=new int[n+2]; int k=1; while(in.hasNext()){ ...

2020-03-05 14:56:14 248

转载 路径打印出现既有斜杆'/',又有反斜杠'\'的原因

转载https://www.cnblogs.com/wangyueyouyi/p/9050266.html&https://blog.csdn.net/lunzi3775/article/details/779476311、绝对路径  绝对路径有三种使用方法:  反斜杠 ‘\’:由于反斜杠 ‘\’ 要用作转义符, 所以如果要使用反斜杠表示路径,则必须使用双反斜杠。 '...

2019-05-24 00:56:14 2308

转载 备忘!python np.argmin()输出的是最小值的下标

numpy.argmin(a,axis=None,out=None)[source]输出axis方向最小值的下标Parameters: a:Input array.axis:默认将输入数组展平。否则,按照axis方向out:可选Returns: index_array:下标组成的数组。shape与输入数组a去掉axis的维度相同。...

2019-05-11 13:14:42 2475 2

转载 Numpy的array数组和TensorFlow的tensor张量的padding操作(实质数组空间形状理解)

Numpy的array数组补0操作#二维数组row=3,col=2(3,2)data1 = np.array([[1,2],[3,4],[5,6]])#补0模式,一维位置前后补(一层)0,二维位置前后补(一层)0pad_width1 = ((1,1),(1,1))data1_p = np.pad(data1, pad_width=pad_width1, mode='constant',...

2019-05-02 15:18:09 1595

原创 Python3.4 pandas 在IDLE出现AttributeError: 'NoneType' object has no attribute 'fileno'

在IDLE中输入>>>a=pd.Series([9,8,7,6]) >>>a出现AttributeError: 'NoneType' object has no attribute 'fileno'运行cmd窗口输入同样内容,问题解决了,???0   91   82   73   6...

2018-03-18 15:10:51 4049 3

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除