使用Pycharm開發第一支Python程式-Hello World
發表於|更新於|Python
|瀏覽量:
本篇簡單說明如何使用Pycharm來開發Python程式,
以下是建立.py與執行的步驟:
- File–>New project
- 在helloworld資料夾右鍵,出現下拉選單,選擇–>New–>Python File
- 填上檔案名稱
- 在程式碼中填入print(“Hello World!”)
- 在helloworld.py上按右鍵,出現下拉選單,選擇Run ‘helloworld’
文章作者: Jack
版權聲明: 本部落格所有文章除特別聲明外,均採用CC BY-NC-SA 4.0 授權協議。轉載請註明來源 X Workshop|量測自動化 × 嵌入式 × AI 開發實戰!
相關推薦
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影片。
2019-05-25
Windows下安裝Pycharm與新增Django專案
由於想要學習Python的Web應用程式Django,因此選擇Pycharm做為開發工具。 本片會接紹Pycharm的安裝,以及第一個簡單的Django專案。 下載pycharm https://www.jetbrains.com/pycharm/download/#section=windows 開始安裝Pycharm 如果有遇到找不到exe檔的問題: FileNotFoundError: [Errno 2] No such file or directory: ‘D:\Python37\lib\venv\scripts\nt\python_d.exe’ 將python_d.exe和pythonw_d.exe複製到該資料夾。 新建專案 選擇Django,專案為firstweb 5. 建立專案中 按執行鍵,執行專案,等同python manage.py runserver 在瀏覽器輸入127.0.0.1:8000,一個簡單的Django專案已經執行。
2020-11-21
[Python] Update and delete data with SQLite in Colab/在Colab中更新與刪除SQLite資料庫
This example shows how to use python to comunicate with SQLite in Colab. 這個範例說明如何在Colab中使用python來與SQLite溝通。 Update data in table 更新資料表中的資料 Delete data in table 從資料表中刪除資料 Previous video: 先前影片 https://www.youtube.com/watch?v=mRuwI-ve5To
2022-11-13
[第22期]Use PyQtGraph and nidaqmx to implement real time plots/使用PyQtGraph與nidaqmx實現時實的繪圖
This video shows how to use PyQtGraph and nidaqmx to implement real time plots. The content includes: Install NI-DAQmx and python nidaqmx Use Qt Designer to design GUI Real-time display DAQ data 本视频说明如何使用PyQtGraph与nidaqmx实现时实的绘图。 内容包含: 安装NI-DAQmx与python nidaqmx 使用Qt Designer设计图形介面 实时显示DAQ资料
2020-04-29
[Python][Voice]Integrate a plot of matplotlib into tkinter GUI/整合matplotlib的繪圖到 tkinter圖形視窗中
This example shows how to integrate a plot or figure on matplotlib into the graphic user interface of tkinter. Import tkinter Import matplotlib Import FigureCanvasTkAgg Import Figure Build a window named “win”. Window format 1: title() Window format 2: geometry() determine size and initial position(x,y) Window format 3: maxsize() set max size of a window Build a figure with figsize = (Width: inch, Length: inch) and dpi = pixel per inch Add the subplot to the figure. Gener...
2020-03-28
[Python][Voice] Write NI DAQ Data to File 儲存NI DAQ的資料到檔案中
這個範例說明如何將NI DAQ卡擷取的資料寫入檔案中This example introduce how to write data acquired from NI DAQ card to a file. 這裡有5個步驟:There are five steps: Install nidaqmx package, Python can use this package to read analog signals from NI DAQ card. 2. Use Simulated NI DAQ Device to simulate NI DAQ device. 3. Use matplotlib to plot analog signals from NI DAQ device. Use File open, write and close method to save a file. Use “with open() as file” to save a file. This is a recommendation for file read and wr...
公告
本站文章自痞客邦(2006–2024)搬家而來,舊文章的程式碼與圖片如有缺漏,歡迎留言告知。





