原创 MATLAB——矩陣排序詳解

<span style="font-size:18px;">(1)B=sort(A) 對一維或二維數組進行升序排序,並返回排序後的數組,當A爲二維時,對數組每一列進行排序. eg: A=[1,5,3],則sort(A)=[1,

原创 Python——查看安裝位置和安裝的庫

查看Python 安裝位置和安裝的庫 步驟一:  1. Start 一個command prompt  2. 找到電腦中已經安裝的Python 位置: where python 1 打開路徑, cd 到輸出的路徑,之後 start.

原创 python——位運算之進制轉化

>>> a=0b001100 >>> a 12 >>> b=0o001100 >>> b 576 >>> c=001100 SyntaxError: invalid token >>> c=0x001100 >>> c 4352 進制輸

原创 python——字符串問題總結

轉義符r/R使用: print (r'\n') print (R'\n') 輸出: \n \n 不受轉義符\n影響 python字符串格式化: print ("我叫 %s 今年 %d 歲!" % ('zx', 20)) 輸出: 我叫

原创 windows誤刪Downloads和Documents故障解決辦法

  解決辦法:在故障的盤下創建相應的文件夾。        

原创 C++_數字時鐘設計

利用C++學習內容,通過windows自帶函數實現一個簡易的時鐘 #include<iostream> #include<windows.h> //延時與清屏頭文件 using namespace std; class time {

原创 [C++基礎修煉] 譯碼破碼C++實現

//輸入一個字符串密碼,按照一定規則給出破譯後的密碼: #include<iostream> using namespace std; int main() { char c; cout<<"請輸入要譯的碼:"; while((c

原创 [C++基礎修煉] 找素數

#include<iostream> #include<cmath> using namespace std; int main() { int m,k,i,n=0; bool prime; //引入布爾型變量 for(m=1

原创 第一個C++程序

       比較C語言區別,main函數必須聲明爲int 型。輸出方式爲“cout<<” ,但是同時也支持“printf”函數。頭文件由系統定義的不需要".h"後綴,用戶自己定義的可以有".h"後綴。 #include<iostrea