osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Calculator


On Wednesday, 15 January 2020 17:09:56 UTC, Python  wrote:
> Le 15/01/2020 ? 16:34, andershe02 at gmail.com a ?crit?:
> > Thanks!
> 
> Do not try it, though, with a expression such as
> import os; os.system('rm -rf ~/*').

If you want something safer, https://github.com/pydata/numexpr has an expression function that will do the same thing.