摘要:
1 import numpy as np 2 import matplotlib.pyplot as plt 3 size = 5 4 a = np.random.random(size) 5 b = np.random.random(size) 6 c = np.random.random(size) 7 d = np.random.random(size) 8 x = np.... 阅读全文
摘要:
用nchoosek(A,n) 如: nchoosek([1,5,3,2,4,0],3) nchoosek([1,5,3,2],2)ans = 1 5 1 3 1 2 5 3 5 2 3 2 如: 阅读全文
摘要:
c = setdiff(a,b) 删掉素组a中数组b的元素 如: 阅读全文
摘要:
time31 = pd.read_excel('F:/save_file/3问出车表.xlsx', sheetname='Sheet1') # 读取‘3问出车表.xlsx’中的Sheet1表单, time32 = pd.read_excel('F:/save_file/3问出车表.xlsx', sheetname='Adjustment') # 读取‘3问出车表.xlsx'中的Adjustm... 阅读全文
摘要:
使用数组生成函数 x=arange(0,10,1) 0到10间距1 linspace(0,10,25) 0到10一共25个数据 阅读全文
摘要:
pip install -i https://pypi.douban.com/simple django==1.9 阅读全文
摘要:
1 int n=0; 2 printf("please enter the number:\n"); 3 scanf("%d",&n); 4 5 int *number=new int[n]; 6 7 for(int i=0;i 2 #include 3 using namespace std; 4 5 6 7 8 9 int main() 10 ... 阅读全文