请参阅下面的示例以了解问题。
a1 = 5 print("a{}".format(1)) output: a1
我希望输出为a1的值,即5
您的代码中有错别字:
print("{}".format(a1))