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]