Dec-25-2019, 02:15 PM
Hi,
I want to write every this which is showing while running my python script. I use below code, but its not writing q & b values, but they are printing on the command window.
I want to write every this which is showing while running my python script. I use below code, but its not writing q & b values, but they are printing on the command window.
#%%
logfile = open("logfile.log", "a")
logfile.write("hello")
a= 0
b=9
print(a)
print(b)
logfile.close()
