###### tags: `Python 教學` # 文字編輯器: 1. add new line 加入一行到文章,給你一行的資料,然後放到文章最後面 輸入格式: add hello world #line 2. insert new line ,插入一行的資料到文章 輸入格式: insert i line 3. delte line 刪除特定行數的資料 輸入格式: delte i 4. print 輸出目前更動文章的文字 輸入格式: 無 # 輸入解釋: 1. n,q # 這個文章有幾行,有幾次操作2. 輸入N行 2. 輸入q行指令 #判斷他是什指令 輸入1 ``` 3,4 hello world wolrd hello hello delte 3 print add ko ko ko print ``` 輸出1: ``` hello world wolrd hello hello world wolrd hello ko ko ko ``` 輸入2 ``` 3,2 hello world wolrd hello hello insert 2 print hahaha print ``` 輸出2: ``` hello world print hahaha wolrd hello hello ```