1、python 三元运算符
无,用 if else
2、python 设置代码缩进
全选。。然后按tab
3、记录程序运行时间
import time time_start=time.time() time_end=time.time() print(‘totally cost‘,time_end-time_start)
python 新手常见问题
原文:https://www.cnblogs.com/quietwalk/p/9104499.html