Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
490 views
in Technique[技术] by (71.8m points)

python - c = x /(8,389 * 10 ** 12),python语法错误:语法无效(c = x/(8,389*10**12), python syntax error: invalid syntax)

I want to do a bit calculator, so you input a number and the calculator calculates it in Bytes, Kb, Mb, gb and Tb.

(我想做一个位计算器,所以您输入一个数字,然后计算器以字节,Kb,Mb,gb和Tb进行计算。)

def Bit():
        x = int(input("Bitte Anzahl in Bits eingeben"))
        y = x/8
        z = x/8192
        a = x/ (8,389*10**6)
        b = x/((8,389*10**9)
        c = x/(8,389*10**12),
        print(
            x,":", y , "Bytes",
            x,":",z, "Kibibyte",
            x,":",a, "Mebibyte",
            x,":",b, "Gibibyte",
            x,":",c, "Terabyte"
        )

Can you help me, to find my syntax Error

(您能帮我,找到我的语法错误吗)

  ask by TheTjschulze translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...