题目:Using the file school_prompt.txt, assign the third word of every line to a list called three
school_prompt = open('school_prompt.txt','r')
chars = school_prompt.readlines()
three = list()
for word in chars:
word = word
该博客介绍了如何使用Python 3从名为school_prompt.txt的文件中读取内容,并将每行的第三个单词存储到列表three中。
题目:Using the file school_prompt.txt, assign the third word of every line to a list called three
school_prompt = open('school_prompt.txt','r')
chars = school_prompt.readlines()
three = list()
for word in chars:
word = word

被折叠的 条评论
为什么被折叠?