2019年2月17日 星期日

Julia 語言 --將公斤轉換成磅數 (3) using readline()

Julia 語言 --將公斤轉換成磅數 (3) using readline()

println("將公斤換算成磅")
print("請輸入公斤: ")
K = parse( Float32,readline())
P=2.2 * K
println( float(P))
using Printf
s = @sprintf("%3.1f 公斤 = %3.1f 磅" , float(K) , float(P) )
println(s)




沒有留言:

張貼留言

Python Modbus 控制 ADAM-6050 18-ch Isolated Digital I/O Module

Python Modbus 控制  ADAM-6050 18-ch Isolated Digital I/O Module import tkinter as tk from tkinter import messagebox from pymodbus.client impor...