发布时间:2019-09-11 07:44:06编辑:auto阅读(2034)
#!/usr/bin/python
# -*- coding:UTF-8 -*-
def sum(options,x,y):
    t = options
    if(t == "+"):
        print "x+y=",x+y
    elif(t == "-"):
        print "x-y=",x-y
    elif(t == "*"):
        print "x*y=",x*y
    else:
        print "x/y=",x/y
def main():
    options = raw_input("Please enter a method:")
    x = input("Enter a Num:")
    y = input("Enter another Num:")
    sum(options,x,y)
    
if __name__ == '__main__':
    main()
上一篇: 使用python脚本实现mysql误操作
下一篇: python生成双色球程序
 51197
 50616
 41238
 38053
 32516
 29423
 28283
 23141
 23098
 21436
 1493°
 2206°
 1830°
 1759°
 2067°
 1817°
 2501°
 4200°
 4062°
 2899°