Python 山姆没有重建就跑了

Python 山姆没有重建就跑了,python,amazon-web-services,aws-lambda,serverless,Python,Amazon Web Services,Aws Lambda,Serverless,我已经开始将AWS SAM用于python。在本地测试我的函数时,我运行: sam build --use-container sam local start-api You can now browse to the above endpoints to invoke your functions. You do **not** need to restart/reload SAM CLI while working on your functions, changes will be re

我已经开始将AWS SAM用于python。在本地测试我的函数时,我运行:

sam build --use-container
sam local start-api 
You can now browse to the above endpoints to invoke your functions. You do **not** need to restart/reload SAM CLI while working on your functions, changes will be reflected instantly/automatically.
sam local invoke ...


然后,如果我对代码进行了更改,那么当我再次调用函数时,如果不重新生成代码,代码将不会得到反映。这里有我错过的技巧吗?我不清楚此提示。

您必须直接更新.aws sam/build文件夹下的文件,才能在不重建的情况下查看所做的更改。

这没有用,也不是一个好做法。