---
title: "Python打印目录下文件"
author: "xly1981"
date: "2021-12-25T09:35:42Z"
tags: []
categories: ["编程语言"]
slug: "python"
draft: false
lastmod: "2021-12-25T09:35:42Z"
id: 2524025
url: "https://xly1981.iteye.com/blog/2524025"
---

```python
import os
print(os.listdir('F:\'))
```