iT邦幫忙

2019 iT 邦幫忙鐵人賽

DAY 12
0
自我挑戰組

linux+python+ffnet實現人工類神經網路系列 第 12

[Day12] 安裝vim撰寫py檔

首先要先安裝vim文字編輯器。

step 1
https://ithelp.ithome.com.tw/upload/images/20181027/201125714N3xLuTAOM.png

sudo apt-get install vim

取得root權限利用apt-get指令install vim 文字編輯器。
ps 可能要輸入密碼,記得他不會顯示字符,所以要一次輸入正確
step 2
https://ithelp.ithome.com.tw/upload/images/20181027/201125713rwow4V5V4.png

ls
cd ./XXX/XXX
  1. 查看本路徑之資料夾
  2. 跳到該路徑 .由現在的路徑為起點的相對路徑

step 3
https://ithelp.ithome.com.tw/upload/images/20181027/20112571Mp1SkFSI10.png

vim hello.py

利用文字編輯器開啟hello.py

step 4
https://ithelp.ithome.com.tw/upload/images/20181027/20112571fJ0mGu0mke.png
step 5

i a o r

以上指令可以進入編輯模式,有一個插入字樣

輸入你要的內容

print('hello')

note:print('字串')

step 6
https://ithelp.ithome.com.tw/upload/images/20181027/20112571Op87UakEbB.png

esc

跳出編輯模式,進入一般模式(只能讀)

step 7

:

進入指令模式

step 8
https://ithelp.ithome.com.tw/upload/images/20181027/20112571yev1xNj0lO.png

wq
q

wq為儲存後離開
q為離開

step 9
https://ithelp.ithome.com.tw/upload/images/20181027/20112571Ad6Attv5Uo.png

python hello.py

再次執行hello.py


上一篇
[Day11]如何寫一個python檔案與執行Python檔
下一篇
[Day13] 一起學習ffnet(出現bug還沒解決)
系列文
linux+python+ffnet實現人工類神經網路23
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言