将下列代码大部分压缩到一行，保持其功能不变
```python
with open('data.txt', 'r') as file:
    data = file.read().splitlines()
    for line in data:
        print(line)
```
user
```python
with open('data.txt', 'r') as file: [print(line) for line in file.read().splitlines()]
```
assistant