Created
February 6, 2016 12:45
-
-
Save gh640/1dbeec86c3d46410a87d to your computer and use it in GitHub Desktop.
1 日の時間を 30 分刻みですべて生成するスクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: utf-8 | |
| # 1 日の 30 分刻みの時刻をすべて生成する | |
| # 00:00, 00:30, 01:30, ..., 23:30 | |
| hours = [] | |
| for h in range(24): | |
| for m in (0, 30): | |
| hours.append('{0:02d}:{1:02d}'.format(h, m)) | |
| print(hours) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment