蟒蛇魔方
pycuber的Python项目详细描述
立方体可以在终端中显示为展开视图,因此很容易 使立方体可视化,就在终端内部。(未在Windows上测试)
>>>importpycuberaspc>>># Create a Cube object>>>mycube=pc.Cube()>>># Do something at the cube.>>>mycube("R U R' U'")>>>print(mycube)
我们也提供了一些有用的工具来处理魔方公式。
>>>importpycuberaspc>>># Create a Formula object>>>my_formula=pc.Formula("R U R' U' R' F R2 U' R' U' R U R' F'")>>># Reversing a Formula>>>my_formula.reverse()>>>print(my_formula)>>># Mirroring a Formula>>>myalg.mirror("LR")>>>print(my_formula)FRU' R'URUR2F' R U R U'R'F' L'ULU' L'U' L2 F L'U' L'UL
稍后我会添加一些文档。