結果 : how to define cursor in python