1、查询端口的命令
lsof -i:端口号
2、查询进程的命令
ps查询进程信息
3、如果一个日志文件一直在写入新的内容,怎么查看文件最后的内容
tail -n 文件名
4、lists={"status":0,"msg":"ok","datas":[{"language":["Go",{"index":["python",{"work":"测试工程师"}]}]}]}
获取go python和测试工程师
lists={"status":0,"msg":"ok","datas":[{"language":["Go",{"index":["python",{"work":"测试工程师"}]}]}]} print(lists['datas'][0]['language'][0]) print(lists['datas'][0]['language'][1]['index'][0]) print(lists['datas'][0]['language'][1]['index'][1]["work"])