2015-12-31から1日間の記事一覧
2. Built-in Functions — Python 2.7.11 documentation divmod(x, y)でxをyで割った商とあまりをタプルで返します。 a, b = divmod(10, 3) #a=3, b=1
2. Built-in Functions — Python 2.7.11 documentation divmod(x, y)でxをyで割った商とあまりをタプルで返します。 a, b = divmod(10, 3) #a=3, b=1