Fork me on GitHub
摘要: import subprocess as sb import requests if __name__ == '__main__': #获取服务器的出口ip ip = sb.getoutput('curl ifconfig.me').split('\n')[-1] #调用芝麻添加白名单的链接,添加即可 response = requests.get('curl ... 阅读全文
posted @ 2019-08-22 20:43 猿起缘灭 阅读(740) 评论(0) 推荐(0) 编辑
摘要: current_time = (datetime.datetime.now() + datetime.timedelta(hours=8)).strftime('%Y-%m-%d %H:%M:%S') 阅读全文
posted @ 2019-08-22 19:48 猿起缘灭 阅读(3915) 评论(0) 推荐(0) 编辑