Skip to content

Instantly share code, notes, and snippets.

@imtaehyun
Created November 6, 2017 08:59
Show Gist options
  • Save imtaehyun/e2b11e13cdf06fed4ec2684dab3bf039 to your computer and use it in GitHub Desktop.
Save imtaehyun/e2b11e13cdf06fed4ec2684dab3bf039 to your computer and use it in GitHub Desktop.
python 몇주차인지 알수있는 방법
import datetime
n = datetime.datetime.now()
n.isocalendar()
# (2017, 45, 1)
n = datetime.datetime(2017, 11, 5)
n.isocalendar()
# (2017, 44, 7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment