pyhton的中as为什么会报无效语法,while open(fileame+title+'.jpg',mode='wb') as f:
^
SyntaxError: invalid syntax
open 前面是with 不是while
with open(xxxxxxxx) as f1:
是 with ... as吧
with open("文件路径","读写方式") as 赋值变量:
执行代码块
with open...
with open(fileame+title+'.jpg',mode='wb') as f:
您好,我是有问必答小助手,您的问题已经有小伙伴帮您解答,感谢您对有问必答的支持与关注!