Python: replace '%' with str.format for examples & templates

Use modern/preferred string formatting for user facing scripts.
This commit is contained in:
Campbell Barton
2024-04-12 15:33:40 +10:00
parent 0bb6317035
commit 98986c6562
14 changed files with 25 additions and 26 deletions

View File

@@ -16,7 +16,7 @@ print("Euler Z", eul[-1])
eul[:] = 1.0, 2.0, 3.0
# components of an existing euler can use slice notation to get a tuple
print("Values: %f, %f, %f" % eul[:])
print("Values: {:f}, {:f}, {:f}".format(*eul))
# the order can be set at any time too
eul.order = 'ZYX'