Research portable Memory game | Исследовать портируемую игру Память
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
310B

  1. import copy
  2. # Make deep copies of arguments to mimic behaviour of strongly typed languages.
  3. # https://stackoverflow.com/a/15398021
  4. def llm_by_value(f):
  5. def _f(*args, **kwargs):
  6. argsCopy = copy.deepcopy(args)
  7. kwargsCopy = copy.deepcopy(kwargs)
  8. return f(*argsCopy, **kwargsCopy)
  9. return _f