年月转换第几周
import time
from datetime import datetime
#52 今天是52周
# print(time.strftime("%W"))
#2,因为今天是周三,周一是0
# today = datetime.now().weekday()
# print(today)
#52 20171225是52周
a = "2020-01-01".replace("-","")
week = datetime.strptime("20200811","%Y%m%d").strftime("%W")
print(week)
'//xxx/xxx/xxx/xxxx/xxx/'.replace("/",str('''\'''))
Jupyter 显示:\\\\xxx\\xxx\\xxx-xxx\\xxx\\'
PyCharm 显示:\\xxx\xxxx\xxx\xxx\xxx\