6, print output and pass keywords

print-Python

Automatic data conversion does not have the function "+" connected to the same data type can
java string + in the basic data types, basic data types can be automatically converted into a string data type

print(“hello {} world {} “.format(x,y))
print(“hello”+str(x)+”world”+str(y))

The difference between pass and continue

pass the equivalent of placeholders, it does not have any practical significance

while True:
    pass

Which pass no practical significance, but Python does not recognize blank, so the pass just as the role of the entity while, actually makes no sense

continue is out of this cycle, the next statement is not executed cuntinue, returned directly to the judging section

Guess you like

Origin www.cnblogs.com/Stephanie-boke/p/11711321.html