Time:09-28
CodePudding user response:
do you have any man, answer it,,,
Quote: refer to 1st floor qq_46283664 response: Any man, answer it,,, The sentence is wrong, sorry, confused, I run, error, the reason is ValueError: unsupported format character 'b' (0 x62) at 8 index In simple terms, does not support % b this binary placeholder, Change % d to decimal placeholder % d line
Any man, answer it,,,
Quote: refer to 4th floor in hindsight づ response: Quote: refer to 1st floor qq_46283664 response: Any man, answer it,,, The sentence is wrong, sorry, confused, I run, error, the reason is ValueError: unsupported format character 'b' (0 x62) at 8 index In simple terms, does not support % b this binary placeholder, Change % d to decimal placeholder % d line Well well, thank you, careless
ValueError: unsupported format character 'b' (0 x62) at 9 index
SyntaxError: invalid character identifier in
weight))
# Function: # presentation error code, should be how to change to the correct code # Qpython3 - CSDN BBS # https://bbs.csdn.net/topics/395926666 # Author: Crifan Li # Update: 20200225 Age=3 # # name=(" Tom ") looks like a tuple tuples, actually not # print (" type "(name)=% s % type (name)) # type (name)=& lt; The class 'STR' & gt; # normlTupleValue=https://bbs.csdn.net/topics/(" Tom ", "Tony") # print (" type "(normlTupleValue)=% s % type (normlTupleValue) # type (normlTupleValue)=& lt; The class 'tuple & gt; Name="Tom" # according to indicate the STR string # weight=55 # print (" type "(weight)=% s % type (weight)) # type (weight)=& lt; The class 'int' & gt; Weight=55.0 # display indicates the float float # print (" type "(weight)=% s % type (weight)) # type (weight)=& lt; The class 'float' & gt; # print (" my name is % s, I % b years old this year, my weight is % 2 f kg "% (name, age and weight)) # ValueError: unsupported format character 'b' (0 x62) at 9 index # % d for formatting the integer to integer Print (" my name is % s, % d, I, my weight is % 2 kg f "% (name, age and weight)) # I'm Tom, I this year 3 years old, my weight is 55.00 kg
Page link:https//www.codepudding.com/other/38331.html