1、求最大值:
```python
a = 10
b = 20
c = 30
max_num = max(a, b, c)
print(max_num) # 输出:30
```
2、求列表中的最大值:
```python
my_list = [10, 20, 30, 40, 50]
max_num = max(my_list)
print(max_num) # 输出:50
```
3、求字典中值的最大值:
```python
my_dict = {'a': 10, 'b': 20, 'c': 30}
max_num = max(my_dict.values())
print(max_num) # 输出:30
```