mirror of
https://github.com/davrot/pytutorial.git
synced 2025-04-17 20:56:41 +02:00
Update README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
1d57978583
commit
859b9d17e7
1 changed files with 11 additions and 0 deletions
|
@ -45,6 +45,17 @@ print(list)
|
|||
['Testfile_001.mat', 'Testfile_002.mat', 'Testfile_010.mat', 'Testfile_003.mat']
|
||||
```
|
||||
|
||||
### Sorting the filenames
|
||||
|
||||
```python
|
||||
import glob
|
||||
|
||||
list = sorted(glob.glob("*.mat"))
|
||||
print(list)
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue