pythonic语法

b="$".join(str(x) for x in range(10))

 

a= 2 if 5<2 else 3

print (a)#a是3

posted @ 2017-08-04 15:30  扫驴  阅读(212)  评论(1)    收藏  举报