1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] C to Python type casting [closed]

Discussão em 'Python' iniciado por Stack, Setembro 14, 2021.

  1. Stack

    Stack Membro Participativo

    I have my.json, and It has number varialbes like C style. like this.

    {"one" : "1U", "two_f": "2.0f")


    but. I want read it on Python(3.x)

    you know this code doesn't work

    a = "1U"
    b = "2.0f"


    because it will be a str-type.

    what should I do??
    thanks a lot for your answer

    Continue reading...

Compartilhe esta Página