2022年9月28日 星期三

Python b757: 頸美椰子樹

b757: 頸美椰子樹 

#---------------------------------------------

print('-------b757: 頸美椰子樹-------')

while True:

    try:

        r = int (input('\n輸入1个正整数 r : ') )   

        R=(r*9)/5 + 32

        #print (R)

        e ='R = (r*9)/5 + 32 = {p}'

        print(e.format(p=R))

        

    except:

        break      

>>> %Run -c $EDITOR_CONTENT
-------b757: 頸美椰子樹-------

輸入1个正整数 r : 100
212.0
R = (r*9)/5 + 32 = 212.0

輸入1个正整数 r : 
>>> 

沒有留言:

張貼留言

ESP32 and Node-RED with MQTT (Publish and Subscribe)

  ESP32 and Node-RED with MQTT (Publish and Subscribe) 參考來源  https://randomnerdtutorials.com/esp8266-and-node-red-with-mqtt/ mqtt_server = ...