我正在执行以下操作:
if ycoords[0] > 0 and ycoords[1] > 0 and ycoords[2] > 0:
# do stuff
您能否通过类似以下方式缩短此代码:
if (ycoords[0] and ycoords[1] and ycoords[2]) > 0:
# do stuff