diff --git a/README.md b/README.md index 4f6e2a1..b87939c 100644 --- a/README.md +++ b/README.md @@ -370,7 +370,7 @@ import re ### Match Object ```python = .group() # Returns the whole match. Also group(0). - = .group(1) # Returns part in the first bracket. + = .group(1) # Returns the part inside first brackets. = .groups() # Returns all bracketed parts. = .start() # Returns start index of the match. = .end() # Returns exclusive end index of the match. @@ -2836,7 +2836,7 @@ frames = [] for velocity in range(1, 16): y = sum(range(velocity)) frame = Image.new('L', (WIDTH, HEIGHT)) - draw = ImageDraw.Draw(frame) + draw = ImageDraw.Draw(frame) draw.ellipse((WIDTH/2-R, y, WIDTH/2+R, y+R*2), fill='white') frames.append(frame) frames += reversed(frames[1:-1]) diff --git a/index.html b/index.html index e3f5de9..a278ca1 100644 --- a/index.html +++ b/index.html @@ -348,7 +348,7 @@ Point(x=1, y=2
  • Add '?' after '*' and '+' to make them non-greedy.
  • Match Object

    <str>   = <Match>.group()                      # Returns the whole match. Also group(0).
    -<str>   = <Match>.group(1)                     # Returns part in the first bracket.
    +<str>   = <Match>.group(1)                     # Returns the part inside first brackets.
     <tuple> = <Match>.groups()                     # Returns all bracketed parts.
     <int>   = <Match>.start()                      # Returns start index of the match.
     <int>   = <Match>.end()                        # Returns exclusive end index of the match.
    @@ -2318,7 +2318,7 @@ frames = []
     for velocity in range(1, 16):
         y = sum(range(velocity))
         frame = Image.new('L', (WIDTH, HEIGHT))
    -    draw  = ImageDraw.Draw(frame)
    +    draw = ImageDraw.Draw(frame)
         draw.ellipse((WIDTH/2-R, y, WIDTH/2+R, y+R*2), fill='white')
         frames.append(frame)
     frames += reversed(frames[1:-1])