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

配列を入れた変数からの代入は参照か、値か? #23

Open
taisukef opened this issue Jan 9, 2025 · 1 comment
Open

Comments

@taisukef
Copy link
Member

taisukef commented Jan 9, 2025

a = [3, 5]
b = a
b[0] = 10
print b
print a # same or not?
@taisukef
Copy link
Member Author

taisukef commented Jan 9, 2025

現状は参照が代入される

@taisukef taisukef changed the title 変数に入れた配列は参照渡しか、値渡しか? 配列を入れた変数からの代入は参照か、値か? Jan 9, 2025
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

1 participant