return statement doesnt return anything in python recursion

前端 未结 2 498
孤街浪徒
孤街浪徒 2021-01-23 22:58

The methods below look in a string to find if it has any python methods.

def there_is_a_call( string ): 
    return string.find(\'(\') > -1

def find_and_rem         


        
2条回答
  •  鱼传尺愫
    2021-01-23 23:21

    Here:

    find_and_remove_functions( string[ function_end + 1: ], found_functions )
    

    should be

    return find_and_remove_functions( string[ function_end + 1: ], found_functions )
    

提交回复
热议问题