- 博客(18)
- 资源 (1)
- 收藏
- 关注
原创 2021-04-15
今天是前端工程师我正式上岗的第15天。我将半复习性质的回顾vscode的上面安装的git插件。Git Blamegit blame 文件名 -L a,b-L 参数表示后面接的是行号(Line), a,b代表查询文件的第a行到第b行之间的文件内容情况。a, 则代表从第a行到文件结尾,b则代表从文件开头到第b行。例:git blame webpack.mix.js -L 5,5Git HistoryGit History Diff用git管理的代码,可以查看提交人,改
2021-04-15 18:04:56 82
原创 数据科学包02
data.head()Data.head(2)Data.tail()Data.tail(3)Data.indexData.columnsData.valuesData.describe()Data.TData.sort_index(axis=1,ascending=False)Data.sort_values(by=’A’)Data[‘A’]/data.AData[2:4]Data[‘20160302’:’20160305’]Data.loc[‘201
2020-07-14 16:39:37 107
原创 数据科学包01
import numpy as nparray=np.array([[1,2,3],[2,3,4]])print(array)print('number of dim:',array.ndim)print('shape:',array.shape)print('size:',array.size)import numpy as npa=np.array([[2,23,4],2,32,4]])print(a)import numpy as npa=np.zeros((3,4)...
2020-07-07 22:39:22 184
原创 python08
class Person:def __init__(self,name,age):self.name=nameself.age=agedef say_age(self):print("年龄,年龄,我也不知道")class Student(Person):def __init__(self,name,age,score):Person.__init__(self,name,age)self...
2020-05-31 13:50:42 122
原创 python07
class Student:def __init__(self,name,score):self.name=nameself.score=scoredef say_score(self):print("{0}的分数是{1}".format(self.name,self.score))s1=Student("高淇",18)s1.say_score( )s1.age=32s1.salary=3000print(s1.salary...
2020-05-30 22:57:37 139
原创 python05
d.keys/values/itemsfor m in range(1,10): for n in range(1,m+1): print("{0}*{1}={2}".format(m,n,(m*n)),end="\t") print()my_text="i love you,i love sxt,i love gaoqi"char_count={c:my_text.count(c) for c in my_text}print(char_count)gnt...
2020-05-22 21:48:25 167
原创 python03
a=[ ["高小一",18,30000,"北京"], ["高小二",19,20000,"上海"], ["高小五",20,10000,"深圳"], ]for m in range(3): for n in range(4): print(a[m][n],end="\t")print()...
2020-05-05 22:39:37 98
原创 python02
绘出折线图,计算起始点与终点的距离import turtleimport mathx1,y1=100,100x2,y2=100,-100x3,y3=-100,-100x4,y4=-100,100turtle.penup()turtle.goto(x1,y1)turtle.pendown()turtle.goto(x2,y2)turtle.go...
2020-05-03 20:49:30 291
原创 python01
>>> import turtle>>> turtle.showturtle()>>> turtle.write("高淇")>>> turtle.forward(300)>>> turtle.color('red") SyntaxError: EOL while s...
2020-04-26 22:15:44 123
原创 Python01
>>> import turtle>>> turtle.showturtle()>>> turtle.write("高淇")>>> turtle.forward(300)>>> turtle.color('red") SyntaxError: EOL while s...
2020-04-26 22:13:18 98
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人