B
B
Bastax132018-07-18 20:34:36
Python
Bastax13, 2018-07-18 20:34:36

Can a program change itself?

Is there a way to redefine the variables inside the exe (or even regular .py) program the first time you run it?
That is, let's say, by default, the variable in the program was overridden on the first run by , for example. And then, with all subsequent launches, a new value was taken. os = 'Operating System'os = 'Windows x64'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2018-07-18
@OnYourLips

There is.
But that's stupid, there are better ways.
For desktop - config files inside the local user folder of the application.
For the phone - by means of the SDK.
For web storage (DBMS)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question