in python 3 @Lucretiel's (correctly spelled) solution fails. it should be: max(stats.keys(), key=(lambda k: stats[k])) since keys() now does what iterkeys() ...
確定! 回上一頁