在 python 中工作时,我有时会发现我不必要地有一个片段,例如:
thing = longfunctioncall(with, many, necessary, arguments, that, take, a, fairly, long, time, to, type)
formattedthing = [str(*q) for q in thing]
我可以合并为:
formattedthing = [str(*q) for q in longfunctioncall(with, many, necessary, arguments, that, take, a, fairly, long, time, to type)]
我知道你可以简单地杀死和拉动整个声明,但我想知道是否有更 EMACSy 的方式来做到这一点。