python自帶函數(shù)——執(zhí)行命令函數(shù) eval
提問人:楊紫紅發(fā)布時間:2020-11-18
>>> your_calculation = input('Enter a calculation: ')
Enter a calculation: 12*52
>>> eval(your_calculation)
624
繼續(xù)查找其他問題的答案?
相關(guān)視頻回答
>>> your_calculation = input('Enter a calculation: ')
Enter a calculation: 12*52
>>> eval(your_calculation)
624
點擊加載更多評論>>