Quantcast
Channel: 丁才軒討論站
Viewing all articles
Browse latest Browse all 75

Python • 使用Notepad++快速在每一行前面加入 #

$
0
0
1. 按 Ctrl+H
2. 尋找內容: ^
3. 取代為: #
4. 搜尋模式: [v]規則運算式
5. 執行 [全部取代]即可

例如:

CODE:

#Function Main#    ... h:身高(cm), w:體重(kg), bmi:BMI值#    Declare Integer h#    Declare Integer w#    Declare Real bmi#    #    Output "請輸入身高(cm)?"#    Input h#    Output "請輸入體重(kg)?"#    Input w#    Assign bmi = w/((h/100)^2)#    Output "你的BMI值為:" & bmi#    Call bmiClass(bmi)#End

統計資料: 發表於 由 dtchang — 2022-12-11, 22:35



Viewing all articles
Browse latest Browse all 75

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>