Last active
February 7, 2020 01:04
-
-
Save yuki-tkd/c6247fb5538f0d12d93d8f6ed00b535a to your computer and use it in GitHub Desktop.
現在日時のディレクトリを作成
This file contains 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
import datetime | |
now = datetime.datetime.now() | |
path = "./" + now.strftime("%Y%m%d_%H%M%S") | |
os.makedirs(path, exist_ok=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment