def triangles(): L=[1] while 1: yield L L=[m+n for m,n in zip([0,*L],[*L,0])]
比我厉害多了,比高回复慢了一个数量级
这个简直是艺术品
Sign in to make a reply
小猫又在晒太阳