三种格式化方法
print(f'{j}x{i}={i*j}\t', end='')
print("{}*{}={}\t".format(j,i,i*j),end = ' ') # %d: 整数的占位符,'-2'代表靠左对齐,两个占位符
print ('%d belongs to %s' % (score,grade))
三种格式化方法
print(f'{j}x{i}={i*j}\t', end='')
print("{}*{}={}\t".format(j,i,i*j),end = ' ') # %d: 整数的占位符,'-2'代表靠左对齐,两个占位符
print ('%d belongs to %s' % (score,grade))