zoukankan      html  css  js  c++  java
  • python中的numpy

    开始学习用python实现机器学习的算法,用到了numpy库,好多函数不清楚。

    google上找到numpy的官网,可以链接到numpy的reference:http://docs.scipy.org/doc/numpy/reference/

    这里仅记录学习过程中用到的:

    【转】配置python命令tab键自动补全

     

    1. 下载readline模块

    http://newcenturycomputers.net/projects/readline.html

    2. install readlinemodule

    3. edit and configure pythonstartup file%USERPROFILE%中,这是个系统变量,路径是c:user用户名

    复制代码
    # python startup file
    import sys
    import readline
    import rlcompleter
    import atexit
    import os
    # tab completion
    readline.parse_and_bind('tab: complete')
    # history file
    histfile = os.path.join(os.environ['HOME'], '.pythonhistory')
    try:
    readline.read_history_file(histfile)
    except IOError:
    pass
    atexit.register(readline.write_history_file, histfile)


    del os, histfile, readline, rlcompleter
    复制代码

    4. add the enviroment varable to system with administrator role

    For windowns

    pythonstartupf=path/pythonstartup.py

    将.startup.py放到%USERPROFILE%
    添加环境变量PYTHONSTARTUP,
    值为%USERPROFILE%.startup.py

    For Linux

    add the following to you ~/.bash_profile
    export PYTHONSTARTUP=~/.pythonstartup
  • 相关阅读:
    Codeforces.468C.Hack it!(构造)
    BZOJ.3227.[SDOI2008]红黑树tree(树形DP 思路)
    146
    145
    144
    143
    142
    141
    140
    139
  • 原文地址:https://www.cnblogs.com/celia01/p/4062911.html
Copyright © 2011-2022 走看看