![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
语言-排行
qq_15098375
What hurts more,the pain of hard work or the pain of regret.
展开
-
Java入门基础-1语言基础
命名规则 类:有意义的单词或单词组合组成,要求每个单词第一个字母大写一般由名词组成。 属性命名:类由属性和方法组成,属性代表类的静态特性,要求有一定意义,明确表示属性本身的特性。 方法命名:方法表示类的动态特性,命名规则除第一个字母小写外其他和类的规则一样,Java对于取值或者设置值的方法有特殊要求,取值的方法是getXXX(),设置值的方法是setXXX()。 常量命名:常量的命名由一个原创 2017-09-26 10:59:54 · 133 阅读 · 0 评论 -
python读取字符型txt文件为float数据
这种形式的txt文件读取为float数据import matplotlib.pyplot as pltimport numpy as npfile = open("./y.txt", "r")list_arr = file.readlines()l = len(list_arr)#print(l)out=np.zeros((l,2))for i in range(l): li...原创 2018-04-22 10:46:39 · 5745 阅读 · 1 评论