起始问题
提问原文
I have a function:
def multiply(a: int, b: int) -> int:
"""Multiply two numbers.
Args:
a: First integer
b: Second integer
"""
return a * b
And I receive a Json file document a function call to the above function:
{
"action": "multiply",
"args": [
{"a": 3},
{"b": 4}
]
}
How can I write a python code to automate the function call once I recieve the json file?