1、随机函数
import random
a=random.randint(0,100)
2、类型转换
int (a)
str(b)
bool(c)
python算法常用函数
原文:https://www.cnblogs.com/fengxiaokang/p/12180947.html