英语单词What的语法
时间: 2023-06-27 15:01:23 浏览: 71
"What" 是一个疑问代词,用于提出一个问题或询问。它可以用于直接提问,也可以用于间接引语中。当它用于直接提问时,通常放在句子的开头。例如:
- What is your name?
- What do you want to eat?
- What time is it?
当它用于间接引语中时,通常用于引述他人的问题或疑虑。例如:
- She asked me what my favorite color was.
- He wondered what he should do next.
- I don't know what she meant by that statement.
相关问题
java必会的英语单词
Sure! Here are some essential English words that you should know when studying Java:
1. Class
2. Object
3. Method
4. Variable
5. Loop
6. Array
7. Inheritance
8. Exception
9. Interface
10. Polymorphism
Related questions:
1. Can you provide more examples of Java classes?
2. What are the different types of loops in Java?
3. How does inheritance work in Java?
用python编写的测试英语单词的程序
Great! Here's a simple program that can help you test your English vocabulary.
```python
import random
# Define a list of words to be tested
words = ['apple', 'banana', 'cherry', 'orange', 'pear', 'grape', 'watermelon', 'pineapple', 'kiwi', 'mango']
# Set the number of questions to be asked
num_questions = 5
# Shuffle the list of words
random.shuffle(words)
# Loop through the shuffled list and ask questions
for i in range(num_questions):
word = words[i]
answer = input(f"What is the meaning of '{word}'? ")
# Check if the answer is correct and print the result
if answer.lower() == 'fruit':
print("Correct!")
else:
print("Incorrect!")
```
In this program, we first define a list of words to be tested. We then set the number of questions to be asked and shuffle the list of words using the `random.shuffle` function.
We then loop through the shuffled list and ask a question for each word using the `input` function. We check if the answer is correct (in this case, the correct answer is 'fruit') and print the result.
You can modify the program to include more words, change the number of questions, and even add more types of questions (e.g. asking for synonyms or antonyms).