问答详情
源自:4-1 Python之if语句

各位大佬看看哪里错了

age = 19

pot = '今年{}岁了'

if age >= 18:

    print('adult')

    print(pot.format(float(age)))


提问者:qq_慕仔3233167 2021-08-18 09:44

个回答

  • qq_慕仔3233167
    2021-08-18 09:59:35

    # coding:utf-8

    age = 19

    pot = '今年{}岁了'

    if age >= 18:

        print('adult')

        print(pot.format(float(age)))