test = [1,2,3,4,5,6] result = map(lambda x:x+0.5 if x!=3 else 99,test) print(list(result)) names = ["A", "B", "C"] values = [11, 23, 46] # 使用 zip 同時迭代兩個 List for x, y in zip(names, values): print(x, y) ''' A 11 B 23 C 46 ''' for index,content in enumerate(names): print(index) ''' 0 A 1 B 2 C ''' print("aaaa %s and %s"%("123","hhh")) # aaaa 123 and hhh print("aaa{} {}".format("hello", "world") ) # aaahello world
- Oct 05 Mon 2020 16:08
Python - 語法 1
- Dec 22 Sat 2018 07:56
使用tensorflow object detection API 训练自己的目标检测模型
- Dec 01 Sat 2018 22:20
Python - OpenCV 播放影片
- Dec 01 Sat 2018 09:13
TensorFlow object_detection API的安装
- Dec 01 Sat 2018 08:26
Python - 工作目錄
- Nov 30 Fri 2018 11:39
Tensorboard 使用心得
Tensorboard 使用心得
Code下載 :
morvanzhou.github.io/tutorials/machine-learning/tensorflow/4-1-tensorboard1
安裝方式 :
jianshu.com/p/3d549c2f9880
無法顯示解決方法:
bbs.csdn.net/topics/392288469
- Nov 13 Tue 2018 06:35
在Powershell中切换Python版本(包括32位与64位切换)
在Powershell中切换Python版本(包括32位与64位切换)
https://blog.csdn.net/TIME_LEAF/article/details/80017471
- Aug 16 Thu 2018 07:58
Python mmap的使用-文件内存映射
- Jul 21 Sat 2018 12:40
LabVIEW - Read station global variable from teststand
- Jul 20 Fri 2018 04:04
TestStand与LabVIEW UI 交互
https://www.cnblogs.com/EltonLiang/p/4981374.html
- Jul 19 Thu 2018 06:47
C# - Value Type (實值型別) vs. Reference Type (參考型別)
- Jul 07 Sat 2018 19:31
C\C++ - 建立DLL
- Jun 27 Wed 2018 06:00
C# - 建立 1 維 2維 陣列
- Jun 25 Mon 2018 10:46
C# - For While If 整理
- Jun 24 Sun 2018 11:57
Python - Django - 模板語法
- Jun 23 Sat 2018 17:57
HTML 初 學 者 指 引
- Jun 21 Thu 2018 16:09
Python - python 與 C# 的互相调用
python与C#的互相调用
- Jun 21 Thu 2018 11:13
RESTful API 說明
- Jun 20 Wed 2018 14:28
Python - Webservice 測試 (Web Services Description Language)
- Jun 20 Wed 2018 10:33
Python - 統計中英文
- Jun 19 Tue 2018 15:27
Python - 用.png 製作 gif 動畫檔案
- Jun 19 Tue 2018 11:47
Python - Django - 繼承模板
- Jun 18 Mon 2018 14:40
Python - Django - SQLite Database Browser
- Jun 15 Fri 2018 10:37
Python - Django - MTV
- Jun 15 Fri 2018 06:12
Python - Django - 建立虛擬環境
- Jun 14 Thu 2018 16:19
Python - Package 封包的設計與使用
- Jun 14 Thu 2018 14:04
Python - 製作 .pyc
- Jun 14 Thu 2018 09:21
ML - 天真貝氏法 Naïve-Bayes
- Jun 13 Wed 2018 06:29
C# - 執行cmd(命令提示字元)
- Jun 12 Tue 2018 17:00
Python - OpenCV Affine + Projective
- Jun 12 Tue 2018 09:45
Python - 多線程 join 和 lock 的使用
- Jun 12 Tue 2018 07:04
Python - 抓驗證碼
- Jun 11 Mon 2018 14:52
Python - BeautifulSoup - find_all() 和 select() 差別
- Jun 11 Mon 2018 14:37
Python - BeautifulSoup的高级应用 之 find findAll
- Jun 11 Mon 2018 07:41
Python - OpenCV 學習資料
- Jun 10 Sun 2018 20:00
Python - OpenCV 使用OpenCV 來找人臉
- Jun 10 Sun 2018 07:13
Python - OpenCV - SIFT 尺度不變特徵轉換 (Scale-invariant feature transform)
- Jun 09 Sat 2018 16:05
Python - 安裝並使用 OpenCV 讀取一張圖片
- Jun 09 Sat 2018 12:10
Python - 使用 CMD 執行 .py
- Jun 08 Fri 2018 14:20
Python - array list tuple
- Jun 08 Fri 2018 11:12
Python - 在Python自帶IDE安裝Numpy
- Jun 07 Thu 2018 16:16
Python - Array 轉維 + 拼接
- Jun 07 Thu 2018 13:05
ML - Plot different SVM classifiers in the iris dataset
- Jun 07 Thu 2018 05:43
ML - scikit-learn 選擇學習
- Jun 07 Thu 2018 05:29
ML - Principal components analysis 主成分分析
ML - Principal components analysis 主成分分析
在多元統計分析中,主成分分析(英語:Principal components analysis,PCA)是一種分析、簡化數據集的技術。
- Jun 07 Thu 2018 05:18
ML - LinearDiscriminant Analysis 线性判别分析
sklearn中的判别分析主要包括两类,LinearDiscriminantAnalysis和QuadraticDiscriminantAnalysis
LDA是一种监督学习的降维技术
- Jun 06 Wed 2018 22:33
ML - A demo of K-Means clustering on the handwritten digits data
- Jun 06 Wed 2018 16:56
ML - 支援向量機 Support Vector Machine
- Jun 06 Wed 2018 16:45
ML - 羅吉斯迴歸 logistic regression
- Jun 06 Wed 2018 14:40
Python_Matplotlib - 1. Join styles
- Jun 06 Wed 2018 12:23
Python - zip()函数
- Jun 06 Wed 2018 05:25
ML - 分群演算法 Clustering Analysis
- Jun 05 Tue 2018 20:12
ML - Normalization 标准化数据
- Jun 05 Tue 2018 15:25
Python 一個 while 迴圈,使用 Input來控制停止
- Jun 05 Tue 2018 09:25
Python - 兩個list的差集、交集與並集的方法
- Jun 04 Mon 2018 17:29
Python - .py 製作 .exe
- Jun 04 Mon 2018 09:58
Python - 讀取.txt檔案並存成1D array 或 2D array
- Jun 04 Mon 2018 06:25
Python - 占位符格式化
- Jun 04 Mon 2018 06:12
Python - Array 拼接+刪除
- Jun 03 Sun 2018 22:25
ML - 線性回歸 linear regression
- Jun 03 Sun 2018 13:35
Python - Sciketlearn - Iris 初學範例
- Jun 03 Sun 2018 10:40
ML - ScikitLearn - Recognizing hand-written digits
Python - ScikitLearn - Recognizing hand-written digits
# 有 1797 個數據,每一個數據是 8x8 的 pixel array
- Jun 03 Sun 2018 10:07
Python - Array (List 切片)
- Jun 03 Sun 2018 08:36
Python - enumerate() 函数
- Jun 02 Sat 2018 11:52
Python - 使用 Tkinter 做來回視窗
- Jun 01 Fri 2018 13:07
Python - 使用 Tkinter 做一個 Label 和 Button
- Jun 01 Fri 2018 06:50
Python - 在 PTT 使用 POST 送資訊給網站
- May 31 Thu 2018 13:04
Python - Regular expression 正則表達式
- May 31 Thu 2018 09:18
Python - 隨機函數 random
- May 30 Wed 2018 12:26
Python - 用Pyqt 來製作UI
- May 29 Tue 2018 17:37
Python - 用文字讓電腦說話
- May 29 Tue 2018 06:50
使用 Pandas 來讀取網頁-台銀幣別轉換兌換並存檔Excel
- May 28 Mon 2018 18:24
Python 爬蟲 URL
- May 28 Mon 2018 13:06
Python - format
- May 28 Mon 2018 09:31
Python 異常處理
- May 28 Mon 2018 06:55
Numpy array 儲存or讀取 CSV 檔案
- May 28 Mon 2018 02:39
使用 selenium 來開啟 Chrome 並收尋圖片
- May 27 Sun 2018 10:46
Python - Speech_recognition
- May 26 Sat 2018 19:43
Python-兩個LOOP的資料處理
- May 26 Sat 2018 16:18
TCPIIP server 模板小程式
- May 26 Sat 2018 12:17
Python 小練習 : 下載網頁圖片到桌面的資料夾裡面
- May 26 Sat 2018 10:18
Python_shutil
# shutil 模組
shutil.copyfile( src, dst) 從源src複製到dst中去。當然前提是目標位址是具備可寫許可權。拋出的異常資訊為IOException. 如果當前的dst已存在的話就會被覆蓋掉