python if判断

#!/usr/bin/python
#coding=utf-8
#好好学习,天天向上
cars=['audi','bmw','toyota','subaru']
for car in cars:
    if car == 'bmw':
       print(car.upper())
    else:
        print(car.title())

  

原文地址:https://www.cnblogs.com/tigergaonotes/p/14226893.html