两个Package 64bit地址,安装方法:CMD切换至Package下载目录,
1 | pip install scipy-0.17.0rc1-cp27-none-win_amd64.whl |
1 | pip install scipy-0.17.0rc1-cp27-none-win_amd64.whl |
1 2 3 4 5 6 | #!/usr/bin/env python import wx app = wx.App(False) frame = wx.Frame(None, wx.ID_ANY, "Hello World") frame.Show(True) app.MainLoop() |
1 | pyinstaller.exe --onefile --windowed app.py |
1 | pyinstaller.exe --onefile --windowed --icon=app.ico app.py |
1 2 3 4 | DEAZV-27TFM-BL52D-PVN9L-ADULD <2021-6-11到期> DEAZW-38TGM-HH52D-XG5WR-FX4QW <2021-6-11到期> DMAZW-48TGM-LQ52C-G82V6-2JJUC <2021-6-10到期> DMAZW-4ATGM-QL52D-M6XEM-TCFCS <2021-6-11到期> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | clear; clc; n=100; disp('parfor'); timebegin=tic; cur_data=date; cur_time=fix(clock); str1=sprintf('%s %.2d:%.2d:%.2d', cur_data, cur_time(4), cur_time(5), cur_time(6)); fprintf('Time Begin: '); fprintf(str1); fprintf('\n'); dirpath='./sub1'; parfor ii=1:n txtname=[num2str(ii), '.txt']; txtpath=[dirpath, '/', txtname]; fid=fopen(txtpath, 'wt'); fclose(fid); fclose('all'); disp(num2str(ii)); end cur_data=date; cur_time=fix(clock); str2=sprintf('%s %.2d:%.2d:%.2d', cur_data, cur_time(4), cur_time(5), cur_time(6)); fprintf('Time End: '); disp(str2); timespan=toc(timebegin); fprintf('Time Span: %.4f s\n', timespan); |
1 2 3 4 5 | XX=[]; parfor ii=1:n value=?? XX=AddData(XX, value); end |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | % Created by LI Xu % Version 1.0 % 12 April, 2015 % Improved by LI Xu % Version 1.1 % December 4, 2015 % Set the input/output directories % for processing clear; clc; clf; % Front Picture frontpath='legend.png'; front=imread(frontpath); % Scale Factor scale=0.18; front=imresize(front, scale); frontrow=size(front, 1); frontcol=size(front, 2); % Source Directory SouDir='./input'; % Destination Directory DesDir='./output'; % Set the start location of row and column hratio=0.57; vratio=0.8; % Background Picture files=dir([SouDir, '/*.png']); for ii=1:length(files) filename=files(ii).name; filepath=[SouDir, '/', filename]; back=imread(filepath); row=size(back, 1); col=size(back, 2); strow=round(row*vratio); stcol=round(col*hratio); resimg=back; resimg(strow:strow+frontrow-1, stcol:stcol+frontcol-1, :)=front; imshow(resimg); pause(2); otpath=[DesDir, '/', filename]; % Save imwrite(resimg, otpath); close all; disp([num2str(ii), '.', filename]); end disp('***********************************************'); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | % Created by LI Xu % Version 1.0 % December 2, 2015 % Description: % Recognize the valid range for the input image % If you have any question about this code, % please do not hesitate to contact me via E-mail: % jeremy456@163.com % Blog: % http://blog.sciencenet.cn/u/lixujeremy % http://lixuworld.blogspot.com/ clear; clc; % Values for Ingnoring igValues=[-99, 100]; % Source Directory SouDir='./input'; % All files files=dir([SouDir, '/*.tif']); % Loop for ii=1:length(files) filename=files(ii).name; filepath=[SouDir, '/', filename]; image=imread(filepath); data=image; imgsz=size(data); num=imgsz(1)*imgsz(2); data=reshape(data, 1, num); for jj=1:length(igValues) igV=igValues(jj); index=find(data==igV); if isempty(index) continue; end data(index)=[]; end % Max max_data=max(data); % Min min_data=min(data); % Display fprintf('%d-%s-%d: ', ii, filename, length(data)); fprintf('%.5f~%.5f\n', min_data, max_data); end disp('*********************************************'); |