标签:
#coding=utf-8 #!/usr/bin/python import logging; a = ‘abc‘; print ‘Y‘ if isinstance(a, str) else ‘N‘;
Python 2.7.9 Demo - 三元表达式
原文地址:http://www.cnblogs.com/nick-huang/p/4617330.html