python优点
简单易学 、免费开源、丰富的库、可扩展性、可移植性、面向对象、规范的代码
变量的类型
数字-int、float
布尔-True、False
字符串 str
列表 list
Tuple 元组
Dict 字典
标识符命名规则
大驼峰、小驼峰、下划线
如何在python中查找关键字.
Here is a list of the Python keywords. Enter any keyword to get more help.
and elif import return
as else in try
assert except is while
break finally lambda with
class for not yield
continue from or
def global pass
del if raise
常用的格式符号有哪些(3个即可)
%s 字符串
%d 十进制的整数(int)
%f 浮点
%c 字符
运算符(至少5个)
算术运算符 加 减 - 乘 * 除 / 取余 % 取整 // 异号 - 不变号 + 取绝对值 abs(x) 转为整数 int(x)
转为浮点数 float(x) 复数 complex(re,im) 共轭复数 c.conjugate() 返回一个数值对(x//y,x%y)
divmod(x,y) x的y次幂(两种写法&#x