阅读背景:

如何为python 3中的字节对象实现sprintf格式的格式化?

来源:互联网 

I want to do sprintf on python3 but with raw bytes objects, without having to do any manual conversions for the %s to work. So, take a bytes object as a 'template', plus any number of objects of any type and return a rendered bytes object. This is how python 2's sprintf % operator has always worked.I want to do sprintf on python3 but with raw by




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: