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

TypeError: ‘str‘ object does not support item assignment #365

Open
Xufeng98 opened this issue May 5, 2023 · 5 comments
Open

TypeError: ‘str‘ object does not support item assignment #365

Xufeng98 opened this issue May 5, 2023 · 5 comments

Comments

@Xufeng98
Copy link

Xufeng98 commented May 5, 2023

单个ID不存在问题,当读入的是txt文件时,会出现此错误
image

@dataabc
Copy link
Owner

dataabc commented May 5, 2023

双引号错了。

@dontd1eplz
Copy link

您好,我遇到了相同的问题,我检查了一下双引号确定是半角模式下的英文双引号,请问应该如何改正呢?

@Xufeng98
Copy link
Author

Xufeng98 commented May 8, 2023 via email

@dataabc
Copy link
Owner

dataabc commented May 8, 2023

@BryceFeng98 @dontd1eplz 把92行shuffle代码注释看看。

@dontd1eplz
Copy link

谢谢,将random.shuffle(user_id_list)注释掉后顺利运行

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

3 participants