搜索了这个,但答案似乎不适用于我的情况。 由于某种原因,返回的列表确认有多行,但一遍又一遍地返回相同的字典...这里是我的代码:
导入io 使用io.open(filename," r",encoding =" utf-8")作为my_file: 用于存储词典的#empty列表
void TextBox_TextChanged(object sender, EventArgs e) => Method();
void TextBox_Validating(object sender, CancelEventArgs e) => Method();