摘要:
小程序实现微信朋友圈时间显示效果: 1分钟前,2分钟前,···,59分钟前,1小时前,2小时前,···,23小时前,一天前,2天前,2019-06-21 等等... 相关代码如下:getTime() { let start = '2019-6-21 22:41:00' let nowTime = n 阅读全文
posted @ 2019-06-24 23:06
我若亦如风
阅读(1409)
评论(0)
推荐(0)
摘要:
先来看段简单代码: #!/usr/bin/env python3 # print absolute value of an integer: a = 100 print(A) # name 'A' is not defined if a >= 0: print(a) else: print(-a) 阅读全文
posted @ 2019-06-24 15:27
我若亦如风
阅读(307)
评论(0)
推荐(0)
摘要:
pip 是 Python 包管理工具,该工具提供了对Python 包的查找、下载、安装、卸载的功能。 目前如果你在 python.org 下载最新版本的安装包,则是已经自带了该工具。 Python 2.7.9 + 或 Python 3.4+ 以上版本都自带 pip 工具。 pip 官网:https: 阅读全文
posted @ 2019-06-24 14:22
我若亦如风
阅读(2669)
评论(0)
推荐(0)
摘要:
{"errcode":40029,"errmsg":"invalid code, hints: [ req_id: aELCyY4ce-WOFLAa ]"} 通过微信官方提供的接 https://api.weixin.qq.com/sns/oauth2/access_token接口,获取openid 阅读全文
posted @ 2019-06-24 10:06
我若亦如风
阅读(14789)
评论(0)
推荐(0)

浙公网安备 33010602011771号