ãã®è¨äºã¯ Python Advent Calendar 2016 24æ¥ç®ã®è¨äºã§ããä»åã¯Pythonã®ãããã°ã®Tipsãããã¤ãç´¹ä»ãã¾ãã print()ã§ãããã° print()é¢æ°ã使ã£ã¦ç¢ºèªãããå¤ãstdoutã«åºåãããã¨ã§ãããã°ãã¾ããããã§è§£æ±ºã§ããã®ã§ããã°ãããã«è¶ãããã¨ã¯ããã¾ããã FizzBuzzããããã°ãã¾ããä»åã¯1ãã20ã¾ã§ã®æ°å¤ã使ã£ã¦FizzBuzzãåºåãããã¨ãã¾ãã以ä¸ã®ã³ã¼ãã«ã¯æãããªãã°ãããã¾ãããããã¾ãã? example_fizzbuzz_buggy.py:: for ii in range(1, 21): if ii % 3 == 0: print('Fizz') elif ii % 5 == 0: print('Buzz') elif ii % 15 == 0: print('FizzBuzz') else: pr
{{#tags}}- {{label}}
{{/tags}}