洛水微寒的博客3.py", line 3, in names.append(names2) AttributeError: 'str' object has no attribute 'append' 修改为这个:(只需要在需要扩充的参数上加一个【】就可以解决啦) names = ['lliy'] names2 = 'pop' names....
废物青年的博客AttributeError: ‘str’ object has no attribute ‘startwith’ 学习金角大王的re正则模块,敲代码遇到的问题: 1、需求: 打印电话号码字段 2、txt文件: 3、给出第一版代码: f = open("7-module_re联系方式....