Research portable Memory game | Исследовать портируемую игру Память
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

19 lignes
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)