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.

пре 4 месеци
12345678910111213141516171819202122
  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. # Tell if string starts with certain prefix.
  14. def llm_startsWith(s, prefix):
  15. return s.startswith(prefix)
  16. # Convert string to integer
  17. def llm_strToInt(s):
  18. return int(s)