Python FAQ

1. The function sum is defined in the function a. The internal function sum can refer to the parameter n of the external function a. You can't write n=n+1 like this, two will make an error, so writing s=s+n can

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324577160&siteId=291194637