%s,表示格化式一个对象为字符 %d,整数 "Hello, %s"%"zhang3" => "Hello, zhang3" "%d"%33 => "33" "%s:%d"%("ab",3) => "ab:3"
转载于:https://blog.51cto.com/zlong37/1539328
%s,表示格化式一个对象为字符 %d,整数 "Hello, %s"%"zhang3" => "Hello, zhang3" "%d"%33 => "33" "%s:%d"%("ab",3) => "ab:3"
转载于:https://blog.51cto.com/zlong37/1539328