1、python主要的版本分为
python2.x和python3.x
两者在语法表达上存在区别且存在兼容性问题
例如:输出 hello world
python2.x:print ‘hello world’
python3.x:print (‘hello world’)
2、python属于动态语言
对于变量不需要像进行特定的类型申明
例如:
python中 a=100;
java中 int a =100。
Python初学者(一)
最新推荐文章于 2024-08-05 17:04:33 发布