結果 : how to lock thread in python