240 发简信
IP属地:宁夏
  • 统计画图

    散点图,每个bin 中画一段线from scipy import statsbins=[3.5,4,4.5,5,5.5,6,6.5]x,y=L_...

    0.2 87 0 1
  • 字符串常用处理

    转义符 \ 如果要想在字符串中包含这个字符,需要这样写 ‘\’ print(‘he said, it\’s fine') 转义符号\的另外两个形...

  • numpy 数组常用处理

    新建数组 a=[]for i in xxx:a.append(i[0:13]) 多维数组 b = np.array([(1.5,2,3), (4...

  • Resize,w 360,h 240
    文件处理相关

    os.getcwd() 输出当前目录os.path.exists(r”c:\python\hello.py”) –> True 判断文件是否...

  • 常用读写数据

    读取txt文件 方法一 逐行读取f = open(file, 'r') ----> 常用的mode有如下几种: ‘r’只读,‘w’写入,...

  • matplotlib 画图

    折线图 fig = plt.figure(figsize=(20,10), dpi=80) 或者fig, ax = plt.subplots(1...