eq = input() eq1 = eq.replace("=","-(") + ")" c = eval(eq1, {'X': 1j}) print(int(-c.real/c.imag)) 例如:solve("x - 2x + 5x - 46(235-24) = x + 2") 下面就来解读下 ...
分类:
编程语言 时间:
2020-03-31 14:53:36
阅读次数:
341
1.django中的log需要在settings.py中配置 import time cur_path = os.path.dirname(os.path.realpath(__file__)) # log_path是存放日志的路径 log_path = os.path.join(os.path.d ...
分类:
其他好文 时间:
2020-03-30 19:32:55
阅读次数:
60
帮助信息 docker version docker -v docker info docker --help 镜像信息 docker images -a 列出本地所有镜像 -q 只显示镜像ID --digests 显示镜像的摘要信息 --no-trunc 显示完整的镜像信息 docker sear ...
分类:
其他好文 时间:
2020-03-30 19:14:11
阅读次数:
69
https://hsivonen.fi/modern-cpp-in-rust/ Since version 56, Firefox has had a new character encoding conversion library called encoding_rs. It is writte ...
分类:
编程语言 时间:
2020-03-29 21:26:15
阅读次数:
81
1. ajax轮询 定时发送ajax请求2. ajax长轮询 发送ajax请求后,服务端不返回,直到有消息或超时,客户再次重新建立ajax请求3. WebSocket 在TCP连接上的全双工通信协议,需要单独的websocket服务器4. SSE server-sent-event,也叫events ...
分类:
其他好文 时间:
2020-03-29 01:25:21
阅读次数:
94
When they are in balance, there is real visual magic. ...
分类:
其他好文 时间:
2020-03-29 01:14:35
阅读次数:
165
1. 内存异常circuit_breaking_exception 错误: Elasticsearch exception [type=circuit_breaking_exception, reason=[parent] Data too large, data for [<http_reques ...
分类:
其他好文 时间:
2020-03-28 19:57:45
阅读次数:
519
In this lesson we will learn about how to define real private properties in javascript classes. Before: class Pasta { constructor(name) { this._name = ...
分类:
编程语言 时间:
2020-03-26 19:21:39
阅读次数:
73
1.准备Html文本 <%-- img标签--%> <asp:Image ID="Sys_Adpic1" runat="server" Style="max-width: 200px;" /> <%-- 缩放照片div--%> <div id="ViewQi" class="ViewQistyle" ...
分类:
Web程序 时间:
2020-03-25 10:45:42
阅读次数:
395
本文参考原文-http://bjbsair.com/2020-03-22/tech-info/2813/njmonnjmon=nmon+JSONformat+real-timepushtoastatsdatabase+instantgraphingof“allthestatsyoucaneat”(AIXandLinux)Thisnjmonisamajoroverhaulofnmonforthene
分类:
其他好文 时间:
2020-03-25 10:42:57
阅读次数:
74