python变量: 在计算机程序中,变量不仅可以是数字,还可以是任意数据类型. 在Python程序中,变量是用一个变量名表示,变量名必须是大小写英文.数字和下划线(_)的组合,且不能用数字开头. 在Python中,等号=是赋值语句,可以把任意数据类型赋值给变量,同一个变量可以反复赋值,而且可以是不同类型的变量 a = 123 # a是整数 print a a = 'imooc' # a变为字符串 print a 这种变量本身类型不固定的语言称之为动态语言,与之对应的是静态语言. 静态语言在定义变
Python安装与环境变量的配置 python下载: Python安装包下载地址:http://www.python.org/ 根据实际的操作系统,安装合适的安装版本. Python安装: 本文以python 2.7.8(64位)为例说明,具体安装步骤如下: 1.双击下载包,进入Python安装向导. 2.选择安装目录.如:D:\Python27\ 3.选择 Add python.exe to Path>>Entire feature will be installed on loca