bestu 发表于 2015-4-27 08:31:58

Python-if-elif-else语句

  Source:
#!/bin/env python# coding=gb2312# -*- coding: gb2312 -*-from __future__ import division#### if-else ####print '#### if-else ####'a = input("a: ") # 12 or 10+2b = input("b: ")if(a>b):print "max: ", aelse:print "max: ", b#### if-elif-else ####print '#### if-elif-else ####'score = raw_input("score: ") # stringscore = int(score)if(score>=90) and (score=80 and score=60 and score
页: [1]
查看完整版本: Python-if-elif-else语句