摘要: 两种转换方法 str = "{a:1, b:3}" a = demjson.decode(str) print(a, type(a)) <<< {'a': 1, 'b': 3} <class 'dict'> dic2 = eval(a) print(dic2, type(dic2))<<< Type 阅读全文
posted @ 2020-12-02 15:50 Naihe\ 阅读(314) 评论(0) 推荐(0)
摘要: 通过云函数每周定时推送限免内容到手机 import datetime import requests requests.packages.urllib3.disable_warnings() # date = datetime.datetime.strptime(i['effectiveDate'] 阅读全文
posted @ 2020-12-02 11:56 Naihe\ 阅读(299) 评论(0) 推荐(0)
摘要: 这是我常用的工具,调用有道翻译接口,每0.5秒检测剪贴板内容是否改变 import re import requests import win32clipboard as w import win32con import time import pyperclip def getText(): # 阅读全文
posted @ 2020-12-02 11:45 Naihe\ 阅读(476) 评论(0) 推荐(0)
摘要: 利用百度给的demo接口做的调用 # -*- coding: utf-8 -*- import base64 from pprint import pprint import requests header = { "Accept": "*/*", "Accept-Encoding": "gzip, 阅读全文
posted @ 2020-12-02 10:57 Naihe\ 阅读(105) 评论(0) 推荐(0)
// 音乐播放器