Skip to content

Commit

Permalink
Update python.md
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmwyant authored Jan 19, 2024
1 parent 466dbb6 commit 3ae1051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ This part is identifed by an exclaimation point followed by either an s, r, or a

The last part is the `<format_spec>`. This component has a rather complex format itself. Note that it is quite common to only use this component. The component is identified with a `:` (colon).

`:[<fill>]<align>][<sign>][#][<padUsing>][<width>][<group>][<precision>][<type>]`
`:[[<fill>]<align>][<sign>][#][<padUsing>][<width>][<group>][.<precision>][<type>]`

|Subcomponent|Effect|
|---|---|
Expand Down Expand Up @@ -173,4 +173,4 @@ s = 'lorem ipsum dolor 123'
match = re.search("/d{1,3}$", s)
print(match is None) # False
print(match.group()) # 123
```
```

0 comments on commit 3ae1051

Please sign in to comment.