If you want to format a numeric string, use int() to convert it to an integer. # print('hex: {:08x}'.format('255')) # ValueError: Unknown format ...
確定! 回上一頁