摘要:
def open_telnet_connection(ip_address, port=3000): socket.setdefaulttimeout(3) try: session = telnetlib.Telnet(ip_address, int(port)) except (Connecti 阅读全文
摘要:
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Regular_Expressions https://blog.csdn.net/csm0912/article/details/81206848 (?:x) 匹配 'x' 阅读全文
摘要:
毫瓦->dbm 0dBm=1mW dbm = 10*math.log(毫瓦,10) # python 实现 dbm = 10*math.log(1,10) dbm->瓦 W=(power(10,dBm/10))/1000 # python 实现 w = math.pow(10,dBm/10)/100 阅读全文
摘要:
import time res = [(time.sleep(1),print(i)) for i in range(10)] print(res) ''' [(None, None), (None, None), (None, None), (None, None), (None, None), 阅读全文
摘要:
from sympy import var, plot_implicit var('x y ') plot_implicit((x**2+(-y)**2-1)**3+x**2*(-y)**3) 阅读全文
摘要:
MCS Modulation and Coding Scheme (MCS) # 基础 1. a symbol is defined as Resource Element (RE) and MCS defined as how many useful bits can be transmitted 阅读全文
摘要:
master_node = { '1': ['a', 'd'], '2': ['a', 'd'], '4': ['a', 'd']} agent_dict = { '2': ['b', 'f'], '3': ['b', 'f'], '4': ['b', 'f'], } agent_dict = {* 阅读全文
摘要:
math >>> import math >>> math.log(4,2) 2.0 >>> sympy【解方程】 # 1 一元方程 import sympy # 引入解方程的专业模块sympy x = sympy.symbols("x") # 申明未知数"x" a = sympy.solve([x 阅读全文
摘要:
from builtins import input,open,print import requests from bs4 import BeautifulSoup headers={ 'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) A 阅读全文
摘要:
系统自带的图片浏览器 from PIL import Image img = Image.open('code_img.png') img.show() matplotlib图片显示 from PIL import Image import matplotlib.pyplot as plt img 阅读全文