我试图制作一个包含所有这些问题的文件,但它没有用!
question = open(filename.txt"r")
这就是我所做的:
#!/usr/bin/python
# questions.py
questions1 = [("At a party do you", "interact with many, including strangers", "interact with a few, known to you"),
("At parties do you", "Stay late, with increasing energy", "Leave early, with decreasing energy"),
("In your social groups do you", "Keep abreast of others happenings", "Get behind on the news"),
("Are you usually rather", "Quick to agree to a time", "Reluctant to agree to a time"),
("In company do you", "Start conversations", "Wait …Run Code Online (Sandbox Code Playgroud)