我有一个 Excel (.xlsx) 文件,其中包含两列短语。例如:
John I have a dog
Mike I need a cat
Nick I go to school
Run Code Online (Sandbox Code Playgroud)
我想在 Python 中导入它并获得一个元组列表,如:
[('John', 'I have a dog'), ('Mike', 'I need a cat'), ('Nick', 'I go to school'), ...]
Run Code Online (Sandbox Code Playgroud)
我能做什么?