首页 > 代码库 > Python>>>The Very First Step
Python>>>The Very First Step
Windows官网下载 python-2.7.13.amd64.msi
默认会安装pip,同是把设置环境变量也选中
安装第三方包:
pip install pygame
确认已经正确安装的方法:1.完成后使用pip list 查看。2.在命令行进入python后,使用import pygame,没有任何提示说明正确安装。
查看python本身的安装位置:
import sys; print sys.path
使用Editor
在http://www.jetbrains.com/pycharm/download/#section=windows下载community版本
常用设置;
1.缩放字体大小File>>Settings>>General>> 在右侧勾选 change font size 。。。。
2.键盘布局。快捷键Ctrl+~ 或者菜单View>>Quich Switch Scheme调出
3,文件编码。File>>Settings>>Editor>>>File Encodings
对于2.7的文件,开头加上编码申明
# -*- coding: utf8 -*-
Python>>>The Very First Step
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。