为什么Google Cloud Function HTTP在main函数中需要一个参数?



In Google Cloud Function (http).

为什么这样做:

def hello_world(a):
return f'Hello World!'

而不是this:

def hello_world():
return f'Hello World!'

云函数需要请求参数,以防您必须在函数中使用请求数据(get或post数据)来处理它们。接口契约需要一个参数。就这样,否则就不能用

最新更新