details about coded lines
Hello, well i have tested the code below which does the following :
the data.configure.
However , i would like to know if someone can describe the code lines below in order that i can understand properly which coded line does what please?
Thanx.
Here is the code below which i used:
def getInstructions
store = {} --line 2 does what ?
try: -- line 3 does what ?
configInput = open(inp) --line 4 does what ?
for line in configInput.
(key, val) = line.strip(
configInp
except: pass
return store
def putInstructions
configOutput = open(out, "w")
for key in store.keys():
line = key + "=" + store[key] + "\n"
configOutpu
fInstructions = "C:\\Users\
# step 1: fetch current instructions
instructions = getInstructions
# step 2: modify instructions
instructions[
# one might add additional instructions
instructions[
# step 3: write the instructions back to file
putInstructions
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Richi for more information if necessary.