缺点:开发效率低,不能跨平台
优势:运行速度快。:c ,c++语言 等等。。。。php
优势:开发效率高,能够跨平台。
缺点:运行速度慢 // 注释 编译型 和解释行 速度 感官 感受不出来:python,php,等等。python
解决方式:
在文件的首行:- -encoding:utf --
python3:默认编码方式utf -8c++
True //注释真 False // 注释 假ide
数字 :编码
int 1 2 3 4
%取余数code
type()ci
ret = 123
python(type(ret))
》》》 int类型开发
字符串字符串
str 。 python 当中凡是用引号( ' ' )引发来的都是字符串
可相加: 字符串的拼接
可相乘: str * intinput
name = input('请输入你的名字') age = input('请输入你的年龄') print('个人名字是'+name,'个人年龄'+age+'岁')
name = input('请输入名字') age =input('请输入年龄') if name == '小二': if age =='18': print(666) else: print(333) else: print('错了。。。')
print('111') whlie true: print('咱们不同') print('痒') print('在人间') print('666')