python function terminated un_在给定的时间后杀死python函数
What's the best way to kill a function (that is still running) after a given amount of time in Python? These are two approaches I have found so far:Say this is our base function:import timedef foo():a...