Home > other >  Python based
Python based

Time:09-23

ABC wrong excuse me this a problem?

CodePudding user response:

Python syntax, string can only + string, so ABC error!
When the string * integer is equal to the string consecutive integer times

CodePudding user response:

A fault in character and character multiplication,
B is wrong in not presupposed character data,
C in the wrong character cannot be combined with the integer data type

CodePudding user response:

refer to the second floor of the QQ reply:
is multiplied by A fault in the character and character,
B is wrong in not presupposed character data,
C in the wrong character data type cannot be combined with integer

Learning is very good,

CodePudding user response:

C: the former 'hello' string the latter two integers, different types cannot be add

D: 'hello' * 2, python can multiply directly, Numbers and characters in the output of the result is: 'hellohello'

CodePudding user response:

Hello D, right twice
  • Related