----------------------------电源------------------------------
|aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
|aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
|aaaaaaaaaaaaa ------------开关----------- aaaaaa|
|aaaaaaaaaaaaa|aaaaaaaaaaaaaaaa|aaaaa|
|aaaaaaaaaaaaa|aaaaaaaaaaaaaaaa|aaaaa|
|aaaaaaaaaaaaa|aaaaaaaaaaaaaaaa|aaaaa|
-----------灯------------------------灯-----------------------
把a全部去掉,因为空格不能正常显示
这们可以实现你的要求,但有个问题,这样两个灯最多只有要盏灯能正常发光,当开关闭合时,左边灯能正常发光,当开关分离时,最多只能是右边的能正常发光,左边灯的两端的电压都小于额定电压