What a great god, and to explain the use of the "+" in this?
CodePudding user response:
Dr Morrison said, learn computer language, the first lesson is to print (" hello world "), you should turn to the first chapter, the bookThere is obviously a normal addition and subtraction, a string with another string, no plus is equal to the print (' XXX 's) this is bad grammar, makes no sense,
CodePudding user response:
In Python, "+" has been used in the digital computing and joining together two strings, you add good here is used for string concatenation, if it's not a plus sign, belong to grammatical errors, can be replaced withCodePudding user response:
for s in "x" :
Print (" circulation in the execution of ", s)
The else:
S="circulation normal close
"Print (s)
CodePudding user response:
Is a polymorphic type operator +.Both sides is Numbers can realize mathematics addition
Both sides is string can achieve string concatenation
Both sides is a list or tuple will implement merge
If when the string formatting and other functions of digital, plus or minus
CodePudding user response:
Python, "+", can be used for digital computing and joining together two strings, of course, you can use % instead ofSuch as this form: print ('. Accuracy=% 2 f % % % (ngood * 100.0/(ngood + nbad)))
CodePudding user response: