它不会附加到写入的字符串中。
11这是的返回值
sys.stdout.write(),它是写入的字符数。
见
write:
将字符串写入
s流并返回写入的字符数。
它类似于:
>>> def foo():... print('something', end='')... return 42...>>> foo()something42
它不会附加到写入的字符串中。
11这是的返回值
sys.stdout.write(),它是写入的字符数。
见
write:
将字符串写入
s流并返回写入的字符数。
它类似于:
>>> def foo():... print('something', end='')... return 42...>>> foo()something42