admin管理员组文章数量:1345707
I’m trying to make a tool that encode python code to runnable code with only symbols. Now i can create any int (because bool is a subclass of int, you can make True with [[]]>[] and True+True == 2, True-True+True == 1, True-True == 0…), and use % format ("%c"%97 == "a", You can convert ascii code to char with %c format) to make any chars. Here’s currently my progress:
_="c";__=exec;__((("%"+_)%((([[]]>[])+([[]]>[])…
But, I still can’t make "c" and exec function with only symbols. so, if you know how to make "c" or exec with only symbols, or how to write symbol-only python code with other way, please can you tell me? …And sorry for my bad English, and i know probably here’s not a place for ask question like this, but i don’t know other places to ask question sorry.
I tried to make <class 'str'> <- this type object with only symbols(because str(str)[1] == "c"), but i couldn’t find way to do that.
本文标签: Is it possible to write python code with only symbols (like jjencode for JavaScript)Stack Overflow
版权声明:本文标题:Is it possible to write python code with only symbols? (like jjencode for JavaScript) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743759646a2534135.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论