📅  最后修改于: 2022-03-11 14:45:44.891000             🧑  作者: Mango
for i in range(0, 9):
globals()[f"my_variable{i}"] = f"Hello from variable number {i}!"
print(my_variable3)
# Hello from variable number 3!