Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大佬,这一行是不是有问题啊 #16

Open
Blyth0He opened this issue Sep 29, 2020 · 1 comment
Open

大佬,这一行是不是有问题啊 #16

Blyth0He opened this issue Sep 29, 2020 · 1 comment

Comments

@Blyth0He
Copy link

if name not in s2_list:

@moryyi
Copy link

moryyi commented Dec 28, 2020


s2_list = [S2_001, S2_003, S2_005, S2_007, S2_008, S2_009, S2_012, S2_013, S2_015, S2_016, S2_019, S2_029, S2_032, S2_033, S2_037, S2_045, S2_046, S2_048, S2_053, S2_devMode, S2_057]
修改为
s2_list = ["S2_001", "S2_003", "S2_005", "S2_007", "S2_008", "S2_009", "S2_013", "S2_015", "S2_016", "S2_019", "S2_029", "S2_032", "S2_033", "S2_037", "S2_045", "S2_046", "S2_048", "S2_052", "S2_052", "S2_devMode", "S2_057"]
就能够正常处理if name not in s2_list了。
参数name作为字符串接受后应该与字符串进行比较,最初的s2_list里都是class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants