PL/Python

[Python] String에서 계산 가능한 식으로: eval()

SweetDev 2021. 7. 12. 16:18
inputStr = input()
print(inputStr)
print(eval(inputStr))