python中startswith与endswith方法

注意:是startswith  而不是 startwith,有个s


error如果是 str has no startwith attribute。。。可能是方法名写错了或者类型不对

你可能感兴趣的:(python中startswith与endswith方法)