23. ä¾ãã°ãããªã³ã¼ã 2011â¼ #  ãã®ä¸ã¯ãã©ã³ã¶ã¯ã·ã§ã³å ã¨ããä»®å® try: #  ãã¬ã¤ã¤ã¼ã®ä½â¼åï¦ãæ¶è²» player.consume_̲vitality() #  ãã¬ã¤ã¤ã¼ã®çµé¨å¤ã¢ãã player.add_̲experience() except: #  ã¨ã©ã¼èµ·ãããDBããã¼ã«ãã㯠transaction.rollback() else: #  åé¡ãªããã°DBæ´ï¤æ°ãçµé¨å¤ãå¢ããã transaction.commit() ä½åâKVS çµé¨å¤âDB â»å®éã®ã³ã¼ãã¨ã¯ç°ãªãã¾ã 24. ä¾ãã°ãããªã³ã¼ã 2011â¼ #  ãã®ä¸ã¯ãã©ã³ã¶ã¯ã·ã§ã³å ã¨ããä»®å® try: #  ãã¬ã¤ã¤ã¼ã®ä½â¼åï¦ãæ¶è²» player.consume_̲vitality() #  ãã¬ã¤ã¤ã¼ã®çµé¨å¤ã¢ãã player.add_̲experience() excep
{{#tags}}- {{label}}
{{/tags}}