2021
09-19
09-19
关于python中readlines函数的参数hint的相关知识总结
readlines的帮助信息>>>fr=open('readme.txt')>>>help(fr.readlines)Helponbuilt-infunctionreadlines:readlines(hint=-1,/)methodof_io.TextIOWrapperinstanceReturnalistoflinesfromthestream.hintcanbespecifiedtocontrolthenumberoflinesread:nomorelineswillbereadifthetotalsize(inbytes/characters)ofalllinessofarexceedshint.Google翻译_io.TextIOWra...
继续阅读 >