Skip to content

Instantly share code, notes, and snippets.

@developer-sdk
Created July 2, 2023 11:01
Show Gist options
  • Save developer-sdk/9e45554d4a47dbd5266c41bcc03c9e38 to your computer and use it in GitHub Desktop.
Save developer-sdk/9e45554d4a47dbd5266c41bcc03c9e38 to your computer and use it in GitHub Desktop.
def op_test0(a, b, c, d):
print(a, b, c, d)
def op_test1(val1, *op_args):
print(val1)
print(op_args)
def op_test2(val1, **op_kwargs):
print(val1)
print(op_kwargs)
if __name__ == '__main__':
print("---- op_test ----")
op_test0(1, 2, 3, 4)
print("---- op_test1 ----")
op_test1(1, 2, 3)
print("---- op_test2 ----")
op_test2('a', hello="world")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment