which python
which python3
exit()
第一个Python程序 - 廖雪峰的官方网站 // 廖雪峰的网址
[] list
() tuple
visual studio code 配置python Visual Studio code 配置Python开发环境_翻滚吧阿俊~~的博客-CSDN博客_vs配置python环境
默认的函数 Built-in Functions — Python 3.10.5 documentation
定义参数;
def my_abs(x):
if x >= 0:
return x
else:
return -x
定义默认参数要牢记一点:默认参数必须指向不变对象!