PTA-浙大版《Python 程序设计》AC解答汇总-第一章

# 第1章-1 从键盘输入两个数,求它们的和并输出 (30分)
def demo_1_1():
    a=int(input())
    b=int(input())
    print(a+b)


# 第1章-2 从键盘输入三个数到a,b,c中,按公式值输出 (30分)
def demo_1_2():
    a,b,c=map(int, input().split())
    print (b*b-4*a*c)


# 第1章-3 输出“Python语言简单易学” (10分)
def demo_1_3():
    s="Python语言简单易学"  
    print(s.encode("utf-8"))

猜你喜欢

转载自blog.csdn.net/qq_34451909/article/details/107908335
今日推荐