📜  使用 python 代码示例将 pb 转换为 tb

📅  最后修改于: 2022-03-11 14:45:51.736000             🧑  作者: Mango

代码示例1
try:
    pb = int(input("How much pb:- "))
    conversion = pb * 1024
    print(conversion," TB")
except ValueError:
    print("PB must be in numerical format not the char format")
    #numerical format --> integer
    #char format --> string