linux系统中的第一个python程序

第一步:打开vmware,开启shizhan节点


第二步:写一个脚本hello.py 。执行脚本python hello.py


以下为python变量特点:

第三:通过id()查看两个变量是否相等。id表示变量的地址


第四:根据数数字长度自动转换(长整型,短整型自动转换)


第五:序列类型(字符串str,元组tuple,列表list)

其他运算操作:

http://www.runoob.com/python/python-install.html

猜你喜欢

转载自blog.csdn.net/mingyuli/article/details/80912042