可以从网址获取代码并执行它吗?

是否可以从网址获取代码,然后使用python执行代码?

I want to make somewhat of a lock so not everyone can easily run my script if they are not whitelisted. I understand Python is easily reversible (with most of the obfuscators) but regardless I'd like to add it.

评论
完美的爱
完美的爱

You can download the code to a string, and then import it. See the example in this link for something similar.

点赞
评论