python基础课程实例
请关注: 微信公众号-柚子编程俱乐部
项目 | 源码 | 文章讲解 |
---|---|---|
1 | convertImgSize.py | Python批量修改图片尺寸 |
2 | sign_piechart.py; score_linechart.py; die.py & die_visual.py ; restaurant_radar.py ; world_population_map.py; github_python_bar.py | pygal数据可视化 |
3 | change_file_name.py | Python|批量修改文件名 |
4 | char_picture.py , ,char_picture2 | 图片转字符画 |
5 | christmas_tree.py | Python实现绘制圣诞树 |
6 | pdf_write.py.py | 【Python教程】PyPDF2处理PDF文件 |
7 | maigai.py | 数据可视化- 利用jieba进行中文分词制作词云 |
8 | create_dir_if_not_exits.py | 检查用户主目录中是否存在目录。 如果目录不存在,则将创建一个目录 |
9 | translate_to_pinyin.py | Python读取word文本并将中文翻译成拼音 |
10 | edges_detected.py edge_detection_using_pillow |
边缘检测 - use Laplace(拉普拉斯)算子 |
11 | binary_thresholding_opencv.py | |
12 | haar_cascade.py | 使用 OpenCV-Python 检测对象 |
13 | auto_merge_docx | python实现自动合并word文件 |
14 | Python 高斯滤波器的生成和可视化 | |
15 | 卷积运算以及高斯滤波器 | |
16 | mimiciv_data_visualization2 | Python连接MIMIC-IV数据库并图表可视化 |
use Python Virtual Environment
# install
pip install virtualenv
# test your installation
virtualenv --version
# you can create a virtualenv using the following command
virtualenv my_name
# After running this command, a directory named my_name will be created. This is the directory which contains all the necessary executables to use the packages that a Python project would need. This is where Python packages will be installed. If you want to specify Python interpreter of your choice, for example Python 3, it can be done using the following command:
$ virtualenv -p /usr/bin/python3 virtualenv_name
# To create a Python 2.7 virtual environment, use the following command:
$ virtualenv -p /usr/bin/python2.7 virtualenv_name
# Note: source is a shell command designed for users running on Linux (or any Posix, but whatever, not Windows).
# To activate virtual environment using windows command prompt change directory to your virtual env
# windows
$ cd <envname>
$ scripts/activate
# linux/posix
$ source virtualenv_name/bin/activate