请总结以下代码的功能和作用:
```python
def sum_of_squares(numbers):
    return sum(x**2 for x in numbers if isinstance(x, (int, float)))

def sum_of_numbers(numbers):
    return sum(x for x in numbers if isinstance(x, (int, float)))
```
user
这段代码包含两个函数：

1. `sum_of_squares(numbers)`: 计算列表中所有整数和浮点数的平方和。
2. `sum_of_numbers(numbers)`: 计算列表中所有整数和浮点数的和。
assistant