python – 为什么string.Formatter.format没有“self”参数? 2019年8月4日 self 0条评论 68次阅读 0人点赞 在阅读 python的字符串模块的源代码时,我对Formatter类感到困惑. Formatter类中的格式方法(不是静态方法或类方法)没有self作为输入参数def格式(* args,** kwargs):,但不知何故…