[Python] Execute script on one text file, and create new text file with output without cmd

Discussão em 'Python' iniciado por Stack, Julho 19, 2025.

  1. Stack

    Stack Membro Participativo

    Title is pretty self-explanatory. Currently I have:

    with open('dwarf_fort.txt') as f:
    for minerals in f:
    mining_rig()


    I need it to go from 'dwarf_fort.txt', execute the program and append the output into a new file. What am I missing here? Thank you.

    Continue reading...

Compartilhe esta Página