[Python] IF條件判斷
發表於|更新於|Python
|瀏覽量:
[若不想看Pixnet的廣告,請看: https://labview-tech.blogspot.com/2019/03/python-if.html]
這邊來做幾個Python IF條件的判斷練習
- if 判斷條件:
1 | 執行語句…… |
else:
1 | 執行語句…… |
1 | 2.if 判斷條件1: |
文章作者: Jack
版權聲明: 本部落格所有文章除特別聲明外,均採用CC BY-NC-SA 4.0 授權協議。轉載請註明來源 X Workshop|量測自動化 × 嵌入式 × AI 開發實戰!
相關推薦
2022-11-13
[第21期]Use PyQtGraph and PyQt to implement line and scatter plots/使用PyQtGraph與PyQt實現線與散狀圖
This video shows how to use PyQtGraph and PyQt to implement line and scatter plots. The content includes: PyQtGraph Introduction Embedding custom widgets from Qt Designer Use PlotWidget.plot() to add data to plot widget 本視頻說明如何使用PyQtGraph與PyQt實現線與散狀圖。 內容包含: PyQtGraph簡介 在Qt Designer嵌入客製化部件模組 使用PlotWidget.plot()新增資料到繪圖部件中
2021-09-19
[第11期]Migrate LabVIEW to Python: read file to XY graph/使用Python改寫LabVIEW程式: 讀檔輸出XY圖
This video shows how to migrate LabVIEW to Python. Examples of reading file to XY graph are demonstrated by using LabVIEW and Python. Content: Read file and plot XY graph with LabVIEW Read file and plot XY graph with Python 本視頻說明如何使用Python改寫LabVIEW程式,分別使用LabVIEW與Pyhon寫出讀檔輸出XY圖的範例來說明。 內容: 1 . LabVIEW讀檔並繪製XY圖 Python讀檔並繪製XY圖
2022-11-21
[第23期]Use pytube and PySide to download YouTube audio(mp3)/使用pytube與PySide下載YouTube聲音檔(mp3)
This vedio shows how to use pytube and PySide to download YouTube audio (mp3). The content includes: PySide Introduction Filter Audio Stream Download and rename Youtube mp3 file 本視頻說明如何使用pytube與PyQt下載YouTube影片。 內容包含: PySide簡介 篩選聲音資料流 下載和重新命名YouTube MP3檔 Pyside template 1234567891011import sysfrom PySide6 import QtWidgetsfrom PySide6.QtCore import QFile, QIODevicefrom PySide6.QtUiTools import QUiLoaderclass MainWindow(QtWidgets.QMainWindow):def __init__(self, ui_file_name, *args, ...
2021-03-07
[第3期] 使用OpenCV讀取攝影機串流影像 Read Camera Streaming Media by OpenCV
This video shows how to read camera streaming media of Notebook by OpenCV 這個視頻說明如何使用OpenCV讀取筆記型電腦的攝影機串流影像 內容/Content 讀取筆電的攝影機影像 Read camera streaming media of NB 擷取攝影機的影像 Capture camera image 等待鍵盤事件的用法 cv2.waitKey() Waiting for keyboard events
2021-12-08
[Note 3] Add Random Number to Python array/在Python陣列中加入隨機數
This video describe how to add random number to Python array. Two libraries, Numpy and Random, are used to implement this purpose. 本視頻說明如何在Python的陣列中加入隨機數。 需要利用兩個函式庫,Numpy和Random來實現這個目的。
2022-11-13
[第20期]Use pytube and PyQt to download YouTube video/使用pytube與PyQt下載YouTube影片
This video shows how to use pytube and PyQt to download YouTube video. The content includes: PyTube Introduction Use Qt Designer to design GUI One click download Youtube video 本視頻說明如何使用pytube與PyQt下載YouTube影片。 內容包含: PyTube簡介 使用Qt Designer設計人機圖形介面 一鍵下載YouTube影片。
公告
本站文章自痞客邦(2006–2024)搬家而來,舊文章的程式碼與圖片如有缺漏,歡迎留言告知。

