Clover I/O
  • Artificial Intelligence
    • Machine Learning
    • NLP
  • Programming
    • Python
    • C/C++
    • Linux
  • Finance & Economy
  • Development
    • Web Dev
    • Mobile Dev
      • iOS Dev
      • Android Dev
    • Hardware
      • ARM9
      • Raspberry Pi
  • Life Story
    • Talking
    • Languages
      • English
  • Artificial Intelligence
    • Machine Learning
    • NLP
  • Programming
    • Python
    • C/C++
    • Linux
  • Finance & Economy
  • Development
    • Web Dev
    • Mobile Dev
      • iOS Dev
      • Android Dev
    • Hardware
      • ARM9
      • Raspberry Pi
  • Life Story
    • Talking
    • Languages
      • English
Z.ZHANG
4 月 10, 2019 1 min read

Python Immutables

a = [[]]*6
a
[[], [], [], [], [], []]
a[1].append(“hello”)
a
[[‘hello’], [‘hello’], [‘hello’], [‘hello’], [‘hello’], [‘hello’]]

https://medium.com/@meghamohan/mutable-and-immutable-side-of-python-c2145cf72747

© 2025 www.cloverio.com