统计发票金额
powershell
powershell
Get-ChildItem *.pdf | ForEach-Object { [float]($_.BaseName -replace "[^\d\.]") } | Measure-Object -Sum | Select-Object -ExpandProperty Sum
python
python
import glob
print(sum((map(lambda i:float(i[:-4]), glob.glob("*.pdf")))))
shell
python -c "import base64;exec(base64.b64decode('aW1wb3J0IGdsb2IKcHJpbnQoc3VtKChtYXAobGFtYmRhIGk6ZmxvYXQoaVs6LTRdKSwgZ2xvYi5nbG9iKCIqLnBkZiIpKSkpKQo='.encode()).decode())"