会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
When you look into the abyss, the abyss looks into you.
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
有点软用的python代码
上一页
1
2
python获取当前的时间
摘要:打印出当前的年月日时分秒 print(time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))) 打印出当前的年月日 print(time.strftime('%Y-%m-%d',time.localtime(time.time()
阅读全文
posted @
2018-09-05 09:43
Operater
阅读(14400)
评论(2)
推荐(0)
python获取本机IP地址
摘要:方法一 通常使用socket.gethostname()方法即可获取本机IP地址,但有时候获取不到(比如没有正确设置主机名称) 方法二: 本方法在windows和linux系统下均可正确获取ip地址
阅读全文
posted @
2018-08-24 15:00
Operater
阅读(42973)
评论(1)
推荐(6)
上一页
1
2
公告