📜  如何在python代码示例中将gb转换为mb

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

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