代码拉取完成,页面将自动刷新
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
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
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'
choices
, default
and help
parameters of add_argument function of argparse libraryIf a variable containt text between """
or '''
on multiple lines should be exactly as in source code examples
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。