Python一行代码画出爱心
print‘\n‘.join([‘‘.join([(‘SunShine-‘[(x-y)%9]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(15,-15,-1)])
时间: 2024-10-09 04:00:07
Python一行代码画出爱心
print‘\n‘.join([‘‘.join([(‘SunShine-‘[(x-y)%9]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(15,-15,-1)])