240 发简信
IP属地:北京
  • 新建虚拟环境

    https://jingyan.baidu.com/article/22a299b5e6e4909e18376a4b.html conda info --envs conda...

  • 自定义判断函数

    ··· def is_float(str): if str.count('.') == 1: #小数有且仅有一个小数点 left = str.split('.')...

  • 登录服务器

    https://blog.csdn.net/xxujia/article/details/81348848 登录服务器,部署执行脚本任务 192.168.30.243 申请r...

  • hive

    1.hive分区:分区是以字段的形式在表结构中存在,通过describe table命令可以查看到字段存在,但是该字段不存放实际的数据内容,仅仅是分区的表示。 分区建表分为2...

  • 无监督机器学习

    sklearn preprocessing 2. from sklearn.cluster import DBSCAN y_pred = DBSCAN().fit_predi...

  • 随笔

    1. 3里面,range(5)不是列表,必须list(range(5)) 2里面,range(5)可以直接使用 2zip 3map 4filter 5cmp 6字典按照val...

  • random

    random.random() random.uniform(a, b) random.choice(seq) random.randrange(start, stop, s...

  • 读取文件

    1python内部 f=open("C:/Users/昀朵/Desktop/learn_final_r1/pace_feature_matrix.txt","r") for ...

  • pandas

    1.(1)迭代 dataframe作为循环对象时,返回各个列名 array作为循环对象时,返回第一层各个元素 dict作为循环对象时,返回key dict.items()作为...