Research portable Memory game | Исследовать портируемую игру Память
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

19 řádky
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)