Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
python [2019/07/09 17:27]
paul [Formatting]
python [2019/07/09 17:29] (current)
paul [Formatting]
Line 176: Line 176:
 For example:  For example: 
 <code python> <code python>
-print("[ FAIL ] {: <22} Channel: {: <23} Statistics: {:>6.2f} hz".format(description, chan, stats))+print("[ FAIL ] {: <20} Channel: {: <20} Statistics: {:>6.4f} hz".format(description, chan, stats))
 </code> </code>
  
-This sets a fix width for each field and aligns the test either left """<""" or right >+This sets a fix width for each field and aligns the test either left ''%%<%%'' or right ''%%>%%''
  
 ===== Mutability ===== ===== Mutability =====
  • python.1562693268.txt.gz
  • Last modified: 2019/07/09 17:27
  • by paul