Research portable Memory game | Исследовать портируемую игру Память
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
433B

  1. import copy
  2. # Make deep copies of arguments to treat the arguments as structs.
  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
  10. # Tell if string is a digit
  11. def llm_isDigit(s):
  12. return s.isdigit()
  13. # Convert string to integer
  14. def llm_strToInt(s):
  15. return int(s)