摘要:
1.确保pycharm是专业版 2.在seting->pluging里下载nodejs插件,第一个就是 3.把nodejs.exe配置到环境变量里 4.打开js文件,右键找到编辑‘xx.js’ 5.第一行节点选择器,填上nodejs的安装位置,保存 6.右键,运行文件 7.大功告成 阅读全文
摘要:
"""author:张鑫date:2021/10/22 11:50"""import redef warp_heareder(s): print("{") lines = s.splitlines() for i, line in enumerate(lines): k, v = line.spli 阅读全文
摘要:
pip install PyExecJS 阅读全文
摘要:
ir_content = tree.xpath('//p[@align="justify"]//text()')if ir_content == []: ir_content = tree.xpath('//td/p/span//text()')neirong = '\u3000\u3000' fo 阅读全文
摘要:
配置1、打开Fiddler Tool->Fiddler Options->HTTPS 。 (配置完后记得要重启Fiddler). 选中"Decrpt HTTPS traffic", Fiddler就可以截获HTTPS请求,第一次会弹出证书安装提示,若没有弹出提示,勾选Actions-> Trust 阅读全文
摘要:
"""author:张鑫date:2021/5/31 15:06"""def ascii_chineses(a): a = a.encode('ascii').decode('unicode_escape') print(a)if __name__ == '__main__': a = r'\u56 阅读全文
摘要:
"""author:张鑫date:2021/5/31 15:11"""def c_a(name): name = name.encode('unicode_escape').decode('ascii') print(name)if __name__ == '__main__': name = '返 阅读全文
摘要:
# coding:UTF-8import timedef time_turns(time1): if '小時' in time1: time2 = str(int(time.time()) - int(time1.split('小')[0]) * 3600) return time2 if '小时' 阅读全文
摘要:
""" author:张鑫 date:2021/7/30 20:39 """ import time def time_turn(timenum): if 0 < len(timenum) < 11 and timenum.isdigit(): timenum = int(timenum) time 阅读全文
摘要:
"""author:张鑫date:2021/7/23 17:16""""""author:张鑫date:2021/7/20 10:00"""import pymysqlconnect = pymysql.Connect( host='192.168.1.117', port=3306, user=' 阅读全文