lab2: addconstant方法增加边界条件通过测试案例;当链表为null的情况