python储备

python

1、a=‘abc’

a.replace(‘a’,‘A’)

print(a)

>>> abc

2、递归:导致栈溢出。

尾递归:把上一个的结果放到下一次调用的参数中,不会导致栈溢出。

3、yeild  执行到这停止,下次执行

猜你喜欢

转载自blog.csdn.net/qq_20407719/article/details/86737702