Python print statement [learning]

A, print information can be output on the screen, together with a space on the rear face print '' into the middle of the content to be output.

Two, print statements can be separated by a comma, but each will have a comma out of a space.

1 >>> print 'The quick brown fox', 'jumps over', 'the lazy dog'
2 The quick brown fox jumps over the lazy dog  #运行结果

Third, examples

. 1 >>> Print  ' 100 = + 200 is ' , 200 is 100 +
 2 100 + 300 = 200 is      # Run Results

 

Guess you like

Origin www.cnblogs.com/nowonder/p/py2.html