import os
import sys
if re
import os , re
regString = "str"
for item in os . listdir ( "str" ) :
    if ( re . match ( regString , item ) ) :
        print ( item )
        newname = re . sub ] "str" , "str" , item )
        os . rename ( item , newname )
        print ( "str" + newname )

import os
import sys
import re
import os , re
regString = "str"
for item in os . listdir ( "str" ) :
    if ( re . match ( regString , item ) ) :
        print ( item )
        newname = re . sub ( "str" , "str" , item )
        os . rename ( item , newname )
        print ( "str" + newname )

次に示すpythonコードの誤りを修正しなさい。