I highlighted the area where it says to print the player's attack message
正如@CoryKramer所说,您需要调用print才能打印一个值(这与自动打印的Matlab不同)。因此,例如:
print
if critchance > critover: print(f'Your attack was a critical hit, you did {1.5 * playdam} damage!')