1 Star 2 Fork 0

诶嘿嘿 / Intensio-Obfuscator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
python_code_recommendations.md 3.00 KB
一键复制 编辑 原始数据 按行查看 历史
Hnfull 提交于 2019-10-04 10:32 . release version 1.0.6

required code format

1) When [-rts, --replacetostr] is called

  • Do not define your names of local variables/classes/functions in your source program identically to functions/classes/parameters-of-function names of imported libraries

    • Can generate an error = yes
      • Recommended:

        import argparse
        self.parser.add_argument("-t", "--test")
        yourChoices = input("number :")
        print(yourChoices)
        
        # 'yourChoices' variable defined have not the same name with function or parameter of function/class of argparse library, so 'add_arguments' will not be replaced by [-rts --replacetostr] feature
        # If you cannot change the source code edit (intensio/exclude/string_to_string_mixed/exclude_word_by_user.txt) word that will you want exclude
      • Not recommended:

        import argparse
        self.parser.add_argument("-t", "--test")
        add_argument = input("number :") # Line of error
        print(add_argument)
        
        # 'add_argument' variable defined is already a name of function of argparse library, all 'add_arguments' will be replaced by [-rts --replacetostr] feature
  • You must exclude the parameters of the functions/classes/parameter-of-function of imported libraries into your source program

    • Can generate an error = yes
      • Recommended:
        import argparse
        self.parser.add_argument("-t", "--test", choices=["test1, test2"], default="test1", help="this is a test !")
        yourChoices = input("number :")
        print(yourChoices)
        
        # The [-rts --replacetostr] feature will replace the 'choices', 'default' and 'help' parameters of 'add_argument' function from argparse library, because their syntaxes is -> 'parameter=', except if you have exclude their words in 'intensio/exclude/string_to_string_mixed/exclude_word_by_user.txt'
        • Edit word exclusion and add choices, default and help parameters of add_argument function of argparse library
  • If a variable containt text between """ or ''' on multiple lines should be exactly as in source code examples

    • Can generate an error = yes
      • Recommended:

        hello = "hello"
        test = """
        --- Display -----
        name : test
        {0}
        see the the placement of quotes 
        """.format(hello)
        
        # OR
        
        hello = "hello"
        test = """
        --- Display -----
        name : test
        see the the placement of quotes 
        """
      • Not recommended:

        test = """
        --- Display -----
        name : test """
        
        # see the the placement of quotes 
1
https://gitee.com/hacktor/Intensio-Obfuscator.git
git@gitee.com:hacktor/Intensio-Obfuscator.git
hacktor
Intensio-Obfuscator
Intensio-Obfuscator
master

搜索帮助