print printf println

Println: print-is a function, can return a value, can only have one parameter

Println: You can print out a string, and variables, the only difference between println and print is that println wraps output.

Printf: Only formatted strings can be printed, string-type variables can be output, and integer variables and shaping cannot be output

Guess you like

Origin blog.csdn.net/codemokey/article/details/105755227