print ('a={:d}, b={:d}'.format(f(x,n),g(x,n))). Python 3.6 introduces yet another string-formatting paradigm: f-strings. print(f'a={f(x,n):d} ...
確定! 回上一頁