Basic(Python)

  • Numerical: int float

    1. 2 ** 5 - 1 = 31
    2. 2 * 3.0 = 6.0
    3. 3 * 'x' = 'xxx'
  • Boolean: bool

  • Strings: str

image.png

  • “nothing”:None

    Blender Specific

  • Object

  • Mesh
  • Lamp
  • Math

  • Vector

image.png

  • Matrix
  • Euler

Collections

  • tuple 元组 不可变序列

    1. >>> tup = ( 1 , 2 , 3 )
    2. >>> tup
    3. ( 1 , 2 , 3 )
    4. >>>
    5. >>> () #空元组
    6. ()
    7. >>>
    8. >>> 55 , #一个值的元组
    9. ( 55 ,)
  • list 可变的序列

image.png

  1. >>> list ( 'python' )
  2. [ 'p' , 'y' , 't' , 'h' , 'o' , 'n' ]
  • dict

    1. d = {key1 : value1, key2 : value2 }
  • set