def my_function(arg1, arg2, **kwargs):
# 使用arg1和arg2
print("arg1:", arg1)
print("arg2:", arg2)
# 使用字典解包后的参数
for key, value in kwargs.items():
print(f"{key}: {value}")
# 调用函数
"fixed1", "fixed2", key1="value1", key2="value2") my_function(
arg1: fixed1
arg2: fixed2
key1: value1
key2: value2