5.4.5 运行 Python 脚本
def getTitle(url):
# ...
# return html.title
getTitle('https://baidu.com')def getTitle(url):
# ...
# return html.title
if __name__ == '__main__':
print(getTitle('https://baidu.com'))import sys
for file in sys.stdin:
print(file)Last updated