time.time()获取前13个数字
时间: 2023-11-20 10:05:30 浏览: 94
time.time()函数返回自UNIX纪元时间戳以来的秒数,是一个浮点数。\[2\]如果你想获取前13个数字,你可以使用字符串切片的方式来截取前13个字符。
#### 引用[.reference_title]
- *1* *2* [Python内置time模块中,time.time()函数和time.sleep()函数的用法](https://blog.csdn.net/leo_leo1229/article/details/125617665)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Golang 13位时间戳转time.Time](https://blog.csdn.net/qq_38556217/article/details/113484508)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文