fork(2) download
  1. def hoge_r(s):
  2. s[1] = "1"
  3.  
  4. a = ["a","b","c"]
  5. b = a
  6. hoge_r(a)
  7. print a
  8. print b
  9.  
  10. a = "abc"
  11. hoge_r(a)
  12. print a
  13.  
Runtime error #stdin #stdout 0.02s 4652KB
stdin
Standard input is empty
stdout
['a', '1', 'c']
['a', '1', 'c']