比较 datetime
想象一下,您正在梳理 2008 年次贷危机中的关键事件。您手头有一些重要日期的 datetime,包括雷曼兄弟宣布破产、TARP 法案获批,以及高盛和摩根士丹利退出投资银行业务。
本练习是课程的一部分
Python 金融进阶
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Lehman Brothers before Morgan Stanley?
lehman_first = lehman ____ morgan_stanley
print(f"It is {lehman_first} that Lehman Brothers declared bankruptcy first.")