All Projects → tomoncle → Python-notes

tomoncle / Python-notes

Licence: MIT License
Python related technologies used in work: crawler, data analysis, timing tasks, RPC, page parsing, decorator, built-in functions, Python objects, multi-threading, multi-process, asynchronous, redis, mongodb, mysql, openstack, etc.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Python-notes

Pythonstudy
Python related technologies used in work: crawler, data analysis, timing tasks, RPC, page parsing, decorator, built-in functions, Python objects, multi-threading, multi-process, asynchronous, redis, mongodb, mysql, openstack, etc.
Stars: ✭ 103 (-0.96%)
Mutual labels:  scheduler, numpy, openstack, rpc, xpath, matplotlib
datascienv
datascienv is package that helps you to setup your environment in single line of code with all dependency and it is also include pyforest that provide single line of import all required ml libraries
Stars: ✭ 53 (-49.04%)
Mutual labels:  numpy, matplotlib
Engezny
Engezny is a python package that quickly generates all possible charts from your dataframe and saves them for you, and engezny is only supporting now uni-parameter visualization using the pie, bar and barh visualizations.
Stars: ✭ 25 (-75.96%)
Mutual labels:  numpy, matplotlib
Fourier-Transform
An implementation of the Fourier Transform using Python
Stars: ✭ 43 (-58.65%)
Mutual labels:  numpy, matplotlib
tapmap
Command line keyboard heatmap generator.
Stars: ✭ 19 (-81.73%)
Mutual labels:  numpy, matplotlib
Udacity-Data-Analyst-Nanodegree
Repository for the projects needed to complete the Data Analyst Nanodegree.
Stars: ✭ 31 (-70.19%)
Mutual labels:  numpy, matplotlib
Python-for-data-analysis
No description or website provided.
Stars: ✭ 18 (-82.69%)
Mutual labels:  numpy, matplotlib
Python Wechat Itchat
微信机器人,基于Python itchat接口功能实例展示:01-itchat获取微信好友或者微信群分享文章、02-itchat获取微信公众号文章、03-itchat监听微信公众号发送的文章、04 itchat监听微信群或好友撤回的消息、05 itchat获得微信好友信息以及表图对比、06 python打印出微信被删除好友、07 itchat自动回复好友、08 itchat微信好友个性签名词云图、09 itchat微信好友性别比例、10 微信群或微信好友撤回消息拦截、11 itchat微信群或好友之间转发消息
Stars: ✭ 216 (+107.69%)
Mutual labels:  numpy, matplotlib
DIP-In-Python
Play around with Pixel in Python
Stars: ✭ 42 (-59.62%)
Mutual labels:  numpy, matplotlib
slam-python
SLAM - Simultaneous localization and mapping using OpenCV and NumPy.
Stars: ✭ 80 (-23.08%)
Mutual labels:  numpy, matplotlib
Machine-Learning-in-Python-Workshop
My workshop on machine learning using python language to implement different algorithms
Stars: ✭ 89 (-14.42%)
Mutual labels:  numpy, matplotlib
micro-service-practice
OpenStack+Docker+RestAPI+OAuth/HMAC+RabbitMQ/ZMQ+OpenResty/HAProxy/Nginx/APIGateway+Bootstrap/AngularJS+Ansible+K8S/Mesos/Marathon构建/探索微服务最佳实践。
Stars: ✭ 25 (-75.96%)
Mutual labels:  openstack, rpc
Exploratory Data Analysis Visualization Python
Data analysis and visualization with PyData ecosystem: Pandas, Matplotlib Numpy, and Seaborn
Stars: ✭ 78 (-25%)
Mutual labels:  numpy, matplotlib
covid-19
Data ETL & Analysis on the global and Mexican datasets of the COVID-19 pandemic.
Stars: ✭ 14 (-86.54%)
Mutual labels:  numpy, matplotlib
Deeplearning cv notes
📓 deepleaning and cv notes.
Stars: ✭ 223 (+114.42%)
Mutual labels:  numpy, matplotlib
introduction to ml with python
도서 "[개정판] 파이썬 라이브러리를 활용한 머신 러닝"의 주피터 노트북과 코드입니다.
Stars: ✭ 211 (+102.88%)
Mutual labels:  numpy, matplotlib
Cheatsheets Ai
Essential Cheat Sheets for deep learning and machine learning researchers https://medium.com/@kailashahirwar/essential-cheat-sheets-for-machine-learning-and-deep-learning-researchers-efb6a8ebd2e5
Stars: ✭ 14,095 (+13452.88%)
Mutual labels:  numpy, matplotlib
Windrose
A Python Matplotlib, Numpy library to manage wind data, draw windrose (also known as a polar rose plot), draw probability density function and fit Weibull distribution
Stars: ✭ 208 (+100%)
Mutual labels:  numpy, matplotlib
Dimensionality-reduction-and-classification-on-Hyperspectral-Images-Using-Python
In this repository, You can find the files which implement dimensionality reduction on the hyperspectral image(Indian Pines) with classification.
Stars: ✭ 63 (-39.42%)
Mutual labels:  numpy, matplotlib
Image-Classifier
Final Project of the Udacity AI Programming with Python Nanodegree
Stars: ✭ 63 (-39.42%)
Mutual labels:  numpy, matplotlib

Python Study

控制台打印乱码: print '你好,世界!'.decode('utf-8')

url = 'http://{0}:{1}/{2}'.format('0.0.0.0', 2375, 'xxx')
url = 'http://{ip}:{port}/{uri}'.format(ip='0.0.0.0', port=2375, uri='xxx')
url = 'http://%s:%d/%s' % ('0.0.0.0', 2375, 'xxx')

Windows Python 依赖库 PythonLibs

  • 1.找到对应的 whl 包下载
  • 2.直接pip install *.whl 或者修改.whl文件为.zip文件,解压缩文件的Python文件夹复制到--python安装目录下的Lib--目录下

Python 中文翻译文档集合

Python 官方文档

Top Python APIs

Python2.7环境变量

假如sys.path不对,则使用Python终端 sys.path = [...]重新设置即可. 默认环境配置如下:

root@node-40:~# python
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys 
>>> sys.path
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7']
>>> 
# /etc/profile

export PYTHONPATH=/usr/lib/python2.7:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/pymodules/python2.7
export PATH=$PATH:$PYTHONPATH

Windows环境Python2.7Python3.x 共同使用

  • Python2.7 : $ py -2
  • Python3.x : $ py -3
  • Python2.7 pip : $ py -2 -m pip xxx
  • Python3.x pip : $ pip3 xxx

pycharm

settings

  • enable Code compatibility inspection: settings --> code compatibility inspection

Python内置工具

  • 下载服务器:

    • Python2.x
      • $ python -m SimpleHttpServer 默认端口8000
      • $ py -2 -m SimpleHTTPServer 默认端口8000
      • $ py -2 -m SimpleHTTPServer 9090 指定端口9090
      • 使用代码:
      import SimpleHTTPServer
      
      SimpleHTTPServer.test()
    • Python3.x
      • $ python -m http.server
      • $ py -3 -m http.server
  • Json格式化:$ curl http://localhost:8080/get | python -m json.tool

  • 执行Python代码:$ python -c "print 'hello world!'"

  • 解压zip包:

    • 创建zip包:$ python -m zipfile -c tom.zip tom.txt
    • 解压zip包:$ python -m zipfile -e tom.zip .
    • 查看zip包:$ python -m zipfile -l tom.zip
  • 文件处理:

    import shutil
    
    shutil.copy('C:\Users\Administrator\Desktop\ctools2.rar','q.rar')

关于Python工作中的一些总结性技术

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].