May 10, 2021 Python3
This section describes the built-in functions in Python3.
1、print
print('here')
# 可以发现某段逻辑是否执行
# 打印出变量的内容
2、assert
assert false, 'blabla'
# 如果条件不成立,则打印出 'blabla' 并抛出AssertionError异常
3、debugger
Debugging can be done with tools such as pdb and IDE.
The specific method of debugging is not expanded here.
There are two built-in methods in Python that are also helpful here: