Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个格式为Fri Oct 02 19:52:02 +0000 2009. 我需要在 Python 中找到与此日期对应的周数。我是 Python 新手,我不知道 datetime 有一个功能可以让我找到它。
Fri Oct 02 19:52:02 +0000 2009
time.strftime有 %U (week nr.) 参数。