Update README.md

Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
David Rotermund 2023-12-02 02:35:00 +01:00 committed by GitHub
parent 9dfbc94a34
commit 5fab5e7045
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ list = glob.glob("*.mat")
print(list)
```
```python console
```python
['Testfile_1.mat', 'Testfile_2.mat', 'Testfile_10.mat', 'Testfile_3.mat']
```
@ -54,7 +54,7 @@ list = sorted(glob.glob("*.mat"))
print(list)
```
```python console
```python
['Testfile_1.mat', 'Testfile_10.mat', 'Testfile_2.mat', 'Testfile_3.mat']
```
Hmmm... This result is not helpful.
@ -73,7 +73,7 @@ list = natsorted(glob.glob("*.mat"))
print(list)
```
```python console
```python
['Testfile_1.mat', 'Testfile_2.mat', 'Testfile_3.mat', 'Testfile_10.mat']
```
@ -89,7 +89,7 @@ for filename in natsorted(glob.glob("*.mat")):
print(filename.rsplit(".", 1)[0])
```
```python console
```python
Testfile_1
Testfile_2
Testfile_3
@ -107,7 +107,7 @@ filenames = list(map(lambda s: s.rsplit(".", 1)[0], filenames))
print(filenames)
```
```python console
```python
['Testfile_1', 'Testfile_2', 'Testfile_3', 'Testfile_10']
```