%% max z=2x1+3x2-5x3 %% s.t. x1+x2+x3=7 %% x1+3x2+x3<=12 %% x1,x2,x3>=0 clear all; close all; f=[-2;-3;5]; a=[-2,5,-1;1,3,1];b=[10;12]; aeq=[1,1,1];be ...
分类:
其他好文 时间:
2021-04-24 11:47:33
阅读次数:
0
from wordcloud import WordCloud,ImageColorGeneratorimport jiebaimport numpy as npimport matplotlib.pyplot as pltfrom PIL import Image with open('西游记.t ...
分类:
其他好文 时间:
2021-04-23 12:11:32
阅读次数:
0
求点的最小外接矩 rect1 = cv2.minAreaRect(box): def back_forward_convert(coordinate, with_label=True): """ :param coordinate: format [x1, y1, x2, y2, x3, y3, x ...
分类:
编程语言 时间:
2021-04-23 11:53:53
阅读次数:
0
CDH添加HUE时数据库连接失败 查看cloudera-scm-server日志报错信息是:ImportError: libxslt.so.1: cannot open shared object file: No such file or directory 原因是centos缺少库文件,执行如下 ...
分类:
其他好文 时间:
2021-04-22 15:53:25
阅读次数:
0
# 安装依赖 yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel # 解压缩 tar -zxvf linux-nginx-1.12.2.tar.gz cd nginx-1.12.2/ # 执行配置 ./configu ...
分类:
其他好文 时间:
2021-04-21 12:51:27
阅读次数:
0
题目大意: 题目思路: 最朴素的方法就是暴力枚举两个答案,然后check取一个最大值就ok,时间复杂度O(N^2) 考虑一种比较好的做法 最小值最大化老二分的套路了 我们二分答案 考虑如何check 因为我们二分的mid是最小值,也就是小于这个值的数字,我们一定是用不到的 也就是如果剩下的数字中能够 ...
分类:
其他好文 时间:
2021-04-21 12:04:21
阅读次数:
0
open -n /Applications/Google\ Chrome.app/ --args --disable-web-security --user-data-dir=/Users/hooliy/Documents/MyChromeDevUserData open -n /Applicati ...
分类:
系统相关 时间:
2021-04-21 11:49:55
阅读次数:
0
1. Overview JasperReports is an open source reporting library that enables users to create pixel-perfect reports that can be printed or exported in ma ...
分类:
编程语言 时间:
2021-04-21 11:48:33
阅读次数:
0
#文件操作 #打开一个文件: # open("文件名","打开模式") # with open("文件名",'打开模式") as 给文件定义变量名: #文件方法: # file.closes() 关闭文件 # file.closed 判断文件是否关闭 # file.seek(移动字节数) 以字节形式 ...
分类:
其他好文 时间:
2021-04-20 15:37:39
阅读次数:
0
下午闲着无聊 用python写了个字典转MD5字典的脚本 import requestsimport hashlibdef baopo(script): print(u" 转化开始:") str=open(script).read() str_list=str.split('\n') print(s ...
分类:
编程语言 时间:
2021-04-20 15:25:35
阅读次数:
0