Python datetime 模块
单选题 简单
题目
如何做 你获取 current date and 时间 in Python?
提示
你需要 datetime 类从 datetime 模块.
解释
之后 导入 datetime, 你 call datetime.datetime.现在() — 首先 datetime 是模块, 其次是 类. Alternatively, 从 datetime 导入 datetime lets 你 call datetime.现在().
相关资源
相关课程
- Datetime
Current date and 时间.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。