quickdraw

Convert text into a dictionary with certain keys and values [duplicate]

走远了吗. 提交于 2019-12-11 23:30:01
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: how to extract a text file into a dictionary I have a text file where I would like to change it into a dictionary in python. The text file is as follows. Where I would like to have the keys as "sun" and "earth" and "moon" and then for the values the orbital radius, period and such so that I can implement an animation solar system into quickdraw. RootObject: Sun Object: Sun Satellites: Mercury,Venus,Earth,Mars

python3 recursion animation in QuickDraw

夙愿已清 提交于 2019-12-04 13:43:44
问题 I have a text file which has the planets and their corresponding moons/satellites along with their orbital radius and period and I would like to use this to create an animation in quickdraw similar to the one below: The text file is as followed: RootObject: Sun Object: Sun Satellites: Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune,Ceres,Pluto,Haumea,Makemake,Eris Radius: 20890260 Orbital Radius: 0 Object: Miranda Orbital Radius: 5822550 Radius: 23500 Period: 1.413 Object: Ariel

python3 recursion animation in QuickDraw

故事扮演 提交于 2019-12-03 08:38:48
I have a text file which has the planets and their corresponding moons/satellites along with their orbital radius and period and I would like to use this to create an animation in quickdraw similar to the one below: The text file is as followed: RootObject: Sun Object: Sun Satellites: Mercury,Venus,Earth,Mars,Jupiter,Saturn,Uranus,Neptune,Ceres,Pluto,Haumea,Makemake,Eris Radius: 20890260 Orbital Radius: 0 Object: Miranda Orbital Radius: 5822550 Radius: 23500 Period: 1.413 Object: Ariel Orbital Radius: 8595000 Radius: 60000 Period: 2.520379 Object: Umbriel Orbital Radius: 11983500 Radius: 60000