标签:输出 log class highlight for else pytho int lov
print(‘\n‘.join([‘‘.join([(‘Love‘[(x-y) % len(‘Love‘)] if ((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3 <= 0 else ‘ ‘) for x in range(-30, 30)]) for y in range(30, -30, -1)]))
Python代码:一行代码输出特定字符"Love"拼成的心形
标签:输出 log class highlight for else pytho int lov
原文地址:http://www.cnblogs.com/yigongzi/p/6387111.html