Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6c7a31

Browse files
committed
Pathlib
1 parent 048e803 commit f6c7a31

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -978,16 +978,16 @@ pwd = Path()
978978
```
979979

980980
```python
981-
<str> = str(<Path>) # Returns path as string.
982-
<tup.> = <Path>.parts # Returns all components as strings.
983-
<Path> = <Path>.resolve() # Makes path absolute.
981+
<str> = str(<Path>) # Returns path as string.
982+
<tup.> = <Path>.parts # Returns all components as strings.
983+
<Path> = <Path>.resolve() # Makes path absolute.
984984
```
985985

986986
```python
987-
<str> = <Path>.name # Final component.
988-
<str> = <Path>.stem # Final component without extension.
989-
<str> = <Path>.suffix # Final component's extension.
990-
<Path> = <Path>.parent # Path without final component.
987+
<str> = <Path>.name # Final component.
988+
<str> = <Path>.stem # Final component without extension.
989+
<str> = <Path>.suffix # Final component's extension.
990+
<Path> = <Path>.parent # Path without final component.
991991
```
992992

993993

0 commit comments

Comments
 (0)