Most instructions follow a similar format, with the register that holds the result specified in the first operand.
大多数指令都遵循类似的格式,结果存储在第一个操作数内指定的寄存器中。
The string format operation involves the processing of the FormatString, looking for format specification sequences, and using these sequences to format the associated data from the right operand.
字符串格式操作涉及处理FormatString、寻找格式定义序列和使用这些序列对右边的操作数中的相关数据应用格式。
The first operand is the format string, which contains one or more format sequences, which specify how the second operand is formatted. The result is a string.
第一个运算对象也就是说明格式的字符串,包含一个或者更多的格式序列,规定了第二个运算对象的输出格式。返回的结果就是格式化后的字符串了。
An alternative is to use the format operator, %. When applied to integers, % is the modulus operator. But when the first operand is a string, % is the format operator.
另外一个方法就是用格式运算符,也就是百分号%。在用于整数的时候,百分号%是取余数的运算符。但当第一个运算对象是字符串的时候,百分号%就成了格式运算符了。
If there is more than one format in the string, you need to pass a tuple as right operand, as in this example.
如果有超过一个的字符串要格式化为一体,就需要将它们传入一个元组做为右值,如下所示。
If there is more than one format in the string, you need to pass a tuple as right operand, as in this example.
如果有超过一个的字符串要格式化为一体,就需要将它们传入一个元组做为右值,如下所示。
应用推荐