摘要:
int result[2];int* SM(int* A, int n) { int max, min; max = min = A[0]; for (int i = 1; i < n; i++) { if (A[i] > max) { max = A[i]; } if (A[i] < min) { 阅读全文
摘要:
int oujilide(int m, int n) { int r; r = m - (m / n) * n;//这里的除法直接就是取地板 if (r == 0) return n; else { m = n; n = r; //m置n,n置r return oujilide(m,n); }} 阅读全文
摘要:
import copy l=[1,3.14,[2,4,6]] l2=copy.copy(l) print(l) print(l2) print(id(l)) print(id(l2)) print(' ') for i in l: print(id(i)) print(' ') for i in l 阅读全文
摘要:
import win32gui import win32api,win32con import time ''' 需要执行下面命令 pip install pywin32 ''' # 获取屏幕宽高 screen_width=win32api.GetSystemMetrics(win32con.SM_ 阅读全文