程序运行结果将会报语法错误,提示“SyntaxError: invalid character in identifier”,因为第13行的字符串中包含了非法字符“-”。正确的写法应该是'utf-8'。

#代码4-3ssocket03spy#!usrbinenv python3# codingutf-8import socketimport osdef sendfileconn strl=connrecv1024 filename = strldecode utf - 8 printThe client requests my filefilename if ospathe

原文地址: https://www.cveoy.top/t/topic/g9pX 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录