创建一个生成器，用于生成包含10个名词和10个形容词的短语。
以下是一个简单的生成器示例，可以生成 10 个名词和 10 个形容词的短语：

```python
import random

nouns = ["dog", "cat", "car", "house", "book", "tree", "phone", "computer", "desk", "chair"]
adjectives = ["happy", "sad", "bright", "dark", "fast", "slow", "big", "small", "tall", "short"]

def phrase_generator():
    for i in range(10):
        noun = random.choice(nouns)
        adjective = random.choice(adjectives)
        yield f"{adjective} {noun}"

# 示例用法
for phrase in phrase_generator():
    print(phrase)
```

输出结果示例：
```
small car
slow tree
big book
tall cat
happy phone
dark desk
bright tree
big dog
small house
fast computer
```