https://www.python-course.eu/python3_formatted_output.php
https://docs.python.org/3/reference/lexical_analysis.html#f-strings
建议使用 {}-style格式 而不是 %-style格式:
print("a=%d,b=%d" % (f(x,n),g(x,n)))
// ‘‘.format()
print('a={:d}, b={:d}'.format(f(x,n),g(x,n)))
// f'a = {f(x,n):d},b = {g(x,n):d}'
print(f'a={f(x,n):d}, b={g(x,n):d}')