- 博客(5)
- 收藏
- 关注
原创 python 项目中datetime模块应用
一. 导包 import time from datetime import datetime 二. 应用 1. 生成当前时间时间戳 timestamp = time.time() print("十位时间戳", timestamp) # 十位时间戳 1612404485.2271032 2. 将时间戳转换成日期时间格式 date = datetime.fromtimestamp(timestamp) print("日期: ", date) print("类型: ", type(date)) # 日期:
2021-02-04 10:26:33
175
原创 VSCode django和falsk Debug配置文件
django调试配置 { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configuration
2021-02-01 08:53:59
328
原创 git --常用指令
每次使用git时,总有些指令忘记如何使用,甚是让人痛苦。 特此记录git的一些常用指令,方便自己查询。 基本指令 # 创建账户关联: # 这部分内容同样修改 .git/config中的内容也可以实现 $ git config --global user.name "Your account Name" $ git config --global user.email "email@example....
2019-03-09 23:34:06
192
原创 Mongodb -- WARNING: shell and server versions do not match
#问题:打开mongo shell 时出现如下错误(以为没有问题) 测试时导致 show collections 命令使用不了 #尝试解决办法: sudo service mongod stop sudo service mongod start 启动mongo时,同样出现以上结果。 通过网络上一番查询,了解了是由于安装mongodb时,没有关闭之前mongodb server,因此需要通过...
2019-03-07 19:55:22
5017
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人