mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
@@ -28,3 +28,4 @@ assert f'{1024:_}' == '1_024'
|
||||
assert f'{65536:,}' == '65,536'
|
||||
assert f'{4294967296:,}' == '4,294,967,296'
|
||||
assert 'F' == "{0:{base}}".format(15, base="X")
|
||||
assert f'{255:#X}' == "0XFF"
|
||||
|
||||
@@ -456,7 +456,7 @@ impl FormatSpec {
|
||||
Some(FormatType::Binary) => "0b",
|
||||
Some(FormatType::Octal) => "0o",
|
||||
Some(FormatType::HexLower) => "0x",
|
||||
Some(FormatType::HexUpper) => "0x",
|
||||
Some(FormatType::HexUpper) => "0X",
|
||||
_ => "",
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user