PythonProject
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -173,4 +173,4 @@ cython_debug/
|
||||
|
||||
# PyPI configuration file
|
||||
.pypirc
|
||||
|
||||
/.idea/
|
||||
|
||||
101
31.txt
Normal file
101
31.txt
Normal file
@@ -0,0 +1,101 @@
|
||||
X Y
|
||||
3,174359073610043 -1,7483953861978812
|
||||
3,805466140053113 -1,6155518553545012
|
||||
-1,0117468219795807 0,18347047163713065
|
||||
2,6906235768758155 -0,954132973158883
|
||||
-1,7928697447936126 0,9090273781245237
|
||||
-0,611744057358977 1,0698671354292058
|
||||
-0,8731573648939082 1,0652330538679124
|
||||
-0,25537730579636175 0,48250417913830335
|
||||
1,6881070302357646 -2,326307016491621
|
||||
2,914399404818842 -1,4669547750993879
|
||||
-0,18877200614593548 0,6755042212079833
|
||||
-0,5926458024931236 1,2153321984026584
|
||||
1,71534917936288 -1,7754408036762923
|
||||
2,4475220221230876 -0,5918392090577269
|
||||
-0,4603457915240803 0,011457793199018074
|
||||
-1,5815112562137021 0,14892228728539791
|
||||
3,349745632532103 -2,201669517018387
|
||||
-1,1932513266469684 1,2871199736357506
|
||||
-0,6899376520709528 -0,09306803919581078
|
||||
-1,2301521818859538 0,8282087906854065
|
||||
-1,6051144843158451 0,45127151939893073
|
||||
3,613953584194676 -2,126639613085037
|
||||
-0,20302880562331982 0,7084196540411187
|
||||
-1,1109599300270125 0,09826854819588593
|
||||
1,197425981676238 -1,208955769774351
|
||||
1,0320350131115221 -1,7945377470069528
|
||||
-1,8370716717707274 1,4139333081917593
|
||||
2,985455066564991 -1,9114766880745466
|
||||
2,369185350745261 -0,7267885520606385
|
||||
2,860332964375797 -2,603000434659457
|
||||
-0,936732324006716 0,19765778306158033
|
||||
-0,9910979872436496 -0,24893212316402175
|
||||
2,150960483745103 -0,762884269795177
|
||||
2,6331214261396445 -2,345648857711871
|
||||
-1,492774066437685 0,8895936462208551
|
||||
2,7851819542572254 -1,566059313584576
|
||||
2,004571929574725 -1,6375800890077354
|
||||
-1,9769499453283113 0,8651796111631107
|
||||
3,1880894128104216 -1,4224948022361787
|
||||
-0,6504691493485677 -0,10341989405470742
|
||||
-0,866347106243645 0,8494543633652067
|
||||
-1,051689144440935 1,4438299050961403
|
||||
-0,5304275427084675 1,1439486800099803
|
||||
3,0931531814852766 -0,5952679271572121
|
||||
-1,6030065341617403 1,2155335647341248
|
||||
1,5496809534476506 -1,968096720143674
|
||||
-0,510357923043528 0,611981778996269
|
||||
-2,175323126496694 0,5877507434798096
|
||||
2,131640598664976 -0,6811265765101719
|
||||
2,3093185403092065 -1,4767441062418494
|
||||
-2,110767787286753 0,4745026824062164
|
||||
-0,48646627588051783 0,3748280765837918
|
||||
2,0369898319643838 -1,0525653497008283
|
||||
3,4033601101286837 -0,9324894587823858
|
||||
2,563690452621528 -2,4757787854032425
|
||||
2,6826699267199308 -1,0868633629330242
|
||||
-1,0153253124396187 0,025958703143609485
|
||||
2,540822501308196 -1,1595805580151584
|
||||
1,70143593358038 -1,2287370694113438
|
||||
-1,4498333468831621 1,60010808443313
|
||||
2,896759879853926 -2,4534140882103643
|
||||
-0,4775146767481928 0,5388673137064954
|
||||
-1,6757898241553009 0,1121922511734682
|
||||
-1,417227592778965 0,7446442419914421
|
||||
2,3092725378368977 -0,5724718983842187
|
||||
2,16882495013064 -0,7636142025782722
|
||||
3,184854030242374 -1,3461803814963973
|
||||
3,0763369602129726 -1,5424083643942539
|
||||
2,4290898361812094 -1,518980356969234
|
||||
-1,9064358215535033 0,7340849735202013
|
||||
2,719262328990821 -0,7318145288543656
|
||||
-2,023303280106806 0,5233516355246927
|
||||
-1,1079318165813026 0,24705660969058663
|
||||
-0,6862919007379842 0,8450411133749804
|
||||
-1,987244159808923 1,2410996188032848
|
||||
3,3646440384608054 -1,8804654109307375
|
||||
3,71681404591961 -1,8790145505972156
|
||||
-0,4614610083622641 1,0615419607973289
|
||||
-1,3991452889042661 0,5208627703323186
|
||||
2,2333409861067812 -2,587402434561441
|
||||
1,5776787165151316 -2,5143252616917855
|
||||
2,987260826832416 -2,450676373746735
|
||||
-1,689297929981878 1,5531300906353205
|
||||
1,9166015357596242 -1,4532904021885822
|
||||
-1,9190384163586798 1,3256177216800784
|
||||
2,1858635306483487 -1,0120917675168386
|
||||
-1,4359406230297047 -0,26441184080886115
|
||||
1,888813642551627 -1,887774421883951
|
||||
2,856254171703606 -2,267828083122158
|
||||
-1,179326826429466 0,3845201712861894
|
||||
-1,721179876169773 1,2475167598134391
|
||||
-0,7806651282200723 1,41578873169603
|
||||
-1,9167199190600424 0,4506013055118139
|
||||
-1,1880748383334494 0,2612065217185866
|
||||
2,639206085439498 -0,8401593755890864
|
||||
2,079451562779164 -0,5514999189495695
|
||||
1,955282281334374 -1,9031878920324337
|
||||
2,6915938562348622 -2,055482794918113
|
||||
1,5256881621568148 -1,3575316060138478
|
||||
-0,3568784955922857 1,2030890383419417
|
||||
8
546456.py
Normal file
8
546456.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import turtle
|
||||
|
||||
t=turtle.Turtle()
|
||||
|
||||
|
||||
for _ in range(360):
|
||||
t.forward(1)
|
||||
t.left(1)
|
||||
7
data.csv
Normal file
7
data.csv
Normal file
@@ -0,0 +1,7 @@
|
||||
name,height,mass
|
||||
Luke Skywalker,172,77
|
||||
C-3PO,167,75
|
||||
R2-D2,96,32
|
||||
Darth Vader,202,136
|
||||
Leia Organa,150,49
|
||||
Yoda,66,17
|
||||
|
9
gnap1.py
Normal file
9
gnap1.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import turtle
|
||||
|
||||
t=turtle.Turtle()
|
||||
|
||||
t.shape("turtle")
|
||||
|
||||
t.forward(100)
|
||||
|
||||
|
||||
1
one.py
Normal file
1
one.py
Normal file
@@ -0,0 +1 @@
|
||||
print(max(filter(lambda x: x%4==0,[int(input()) for i in range(int(input()))])))
|
||||
88
starwars.csv
Normal file
88
starwars.csv
Normal file
@@ -0,0 +1,88 @@
|
||||
name,height,mass,hair_color,skin_color,eye_color,birth_year,sex,gender,homeworld,species,films,vehicles,starships
|
||||
Luke Skywalker,172,77,blond,fair,blue,19,male,masculine,Tatooine,Human,"The Empire Strikes Back, Revenge of the Sith, Return of the Jedi, A New Hope, The Force Awakens","Snowspeeder, Imperial Speeder Bike","X-wing, Imperial shuttle"
|
||||
C-3PO,167,75,NA,gold,yellow,112,none,masculine,Tatooine,Droid,"The Empire Strikes Back, Attack of the Clones, The Phantom Menace, Revenge of the Sith, Return of the Jedi, A New Hope",,
|
||||
R2-D2,96,32,NA,"white, blue",red,33,none,masculine,Naboo,Droid,"The Empire Strikes Back, Attack of the Clones, The Phantom Menace, Revenge of the Sith, Return of the Jedi, A New Hope, The Force Awakens",,
|
||||
Darth Vader,202,136,none,white,yellow,41.9,male,masculine,Tatooine,Human,"The Empire Strikes Back, Revenge of the Sith, Return of the Jedi, A New Hope",,TIE Advanced x1
|
||||
Leia Organa,150,49,brown,light,brown,19,female,feminine,Alderaan,Human,"The Empire Strikes Back, Revenge of the Sith, Return of the Jedi, A New Hope, The Force Awakens",Imperial Speeder Bike,
|
||||
Owen Lars,178,120,"brown, grey",light,blue,52,male,masculine,Tatooine,Human,"Attack of the Clones, Revenge of the Sith, A New Hope",,
|
||||
Beru Whitesun lars,165,75,brown,light,blue,47,female,feminine,Tatooine,Human,"Attack of the Clones, Revenge of the Sith, A New Hope",,
|
||||
R5-D4,97,32,NA,"white, red",red,NA,none,masculine,Tatooine,Droid,A New Hope,,
|
||||
Biggs Darklighter,183,84,black,light,brown,24,male,masculine,Tatooine,Human,A New Hope,,X-wing
|
||||
Obi-Wan Kenobi,182,77,"auburn, white",fair,blue-gray,57,male,masculine,Stewjon,Human,"The Empire Strikes Back, Attack of the Clones, The Phantom Menace, Revenge of the Sith, Return of the Jedi, A New Hope",Tribubble bongo,"Jedi starfighter, Trade Federation cruiser, Naboo star skiff, Jedi Interceptor, Belbullab-22 starfighter"
|
||||
Anakin Skywalker,188,84,blond,fair,blue,41.9,male,masculine,Tatooine,Human,"Attack of the Clones, The Phantom Menace, Revenge of the Sith","Zephyr-G swoop bike, XJ-6 airspeeder","Trade Federation cruiser, Jedi Interceptor, Naboo fighter"
|
||||
Wilhuff Tarkin,180,NA,"auburn, grey",fair,blue,64,male,masculine,Eriadu,Human,"Revenge of the Sith, A New Hope",,
|
||||
Chewbacca,228,112,brown,unknown,blue,200,male,masculine,Kashyyyk,Wookiee,"The Empire Strikes Back, Revenge of the Sith, Return of the Jedi, A New Hope, The Force Awakens",AT-ST,"Millennium Falcon, Imperial shuttle"
|
||||
Han Solo,180,80,brown,fair,brown,29,male,masculine,Corellia,Human,"The Empire Strikes Back, Return of the Jedi, A New Hope, The Force Awakens",,"Millennium Falcon, Imperial shuttle"
|
||||
Greedo,173,74,NA,green,black,44,male,masculine,Rodia,Rodian,A New Hope,,
|
||||
Jabba Desilijic Tiure,175,1358,NA,"green-tan, brown",orange,600,hermaphroditic,masculine,Nal Hutta,Hutt,"The Phantom Menace, Return of the Jedi, A New Hope",,
|
||||
Wedge Antilles,170,77,brown,fair,hazel,21,male,masculine,Corellia,Human,"The Empire Strikes Back, Return of the Jedi, A New Hope",Snowspeeder,X-wing
|
||||
Jek Tono Porkins,180,110,brown,fair,blue,NA,male,masculine,Bestine IV,Human,A New Hope,,X-wing
|
||||
Yoda,66,17,white,green,brown,896,male,masculine,NA,Yoda's species,"The Empire Strikes Back, Attack of the Clones, The Phantom Menace, Revenge of the Sith, Return of the Jedi",,
|
||||
Palpatine,170,75,grey,pale,yellow,82,male,masculine,Naboo,Human,"The Empire Strikes Back, Attack of the Clones, The Phantom Menace, Revenge of the Sith, Return of the Jedi",,
|
||||
Boba Fett,183,78.2,black,fair,brown,31.5,male,masculine,Kamino,Human,"The Empire Strikes Back, Attack of the Clones, Return of the Jedi",,Slave 1
|
||||
IG-88,200,140,none,metal,red,15,none,masculine,NA,Droid,The Empire Strikes Back,,
|
||||
Bossk,190,113,none,green,red,53,male,masculine,Trandosha,Trandoshan,The Empire Strikes Back,,
|
||||
Lando Calrissian,177,79,black,dark,brown,31,male,masculine,Socorro,Human,"The Empire Strikes Back, Return of the Jedi",,Millennium Falcon
|
||||
Lobot,175,79,none,light,blue,37,male,masculine,Bespin,Human,The Empire Strikes Back,,
|
||||
Ackbar,180,83,none,brown mottle,orange,41,male,masculine,Mon Cala,Mon Calamari,"Return of the Jedi, The Force Awakens",,
|
||||
Mon Mothma,150,NA,auburn,fair,blue,48,female,feminine,Chandrila,Human,Return of the Jedi,,
|
||||
Arvel Crynyd,NA,NA,brown,fair,brown,NA,male,masculine,NA,Human,Return of the Jedi,,A-wing
|
||||
Wicket Systri Warrick,88,20,brown,brown,brown,8,male,masculine,Endor,Ewok,Return of the Jedi,,
|
||||
Nien Nunb,160,68,none,grey,black,NA,male,masculine,Sullust,Sullustan,Return of the Jedi,,Millennium Falcon
|
||||
Qui-Gon Jinn,193,89,brown,fair,blue,92,male,masculine,NA,Human,The Phantom Menace,Tribubble bongo,
|
||||
Nute Gunray,191,90,none,mottled green,red,NA,male,masculine,Cato Neimoidia,Neimodian,"Attack of the Clones, The Phantom Menace, Revenge of the Sith",,
|
||||
Finis Valorum,170,NA,blond,fair,blue,91,male,masculine,Coruscant,Human,The Phantom Menace,,
|
||||
Jar Jar Binks,196,66,none,orange,orange,52,male,masculine,Naboo,Gungan,"Attack of the Clones, The Phantom Menace",,
|
||||
Roos Tarpals,224,82,none,grey,orange,NA,male,masculine,Naboo,Gungan,The Phantom Menace,,
|
||||
Rugor Nass,206,NA,none,green,orange,NA,male,masculine,Naboo,Gungan,The Phantom Menace,,
|
||||
Ric Olié,183,NA,brown,fair,blue,NA,NA,NA,Naboo,NA,The Phantom Menace,,Naboo Royal Starship
|
||||
Watto,137,NA,black,"blue, grey",yellow,NA,male,masculine,Toydaria,Toydarian,"Attack of the Clones, The Phantom Menace",,
|
||||
Sebulba,112,40,none,"grey, red",orange,NA,male,masculine,Malastare,Dug,The Phantom Menace,,
|
||||
Quarsh Panaka,183,NA,black,dark,brown,62,NA,NA,Naboo,NA,The Phantom Menace,,
|
||||
Shmi Skywalker,163,NA,black,fair,brown,72,female,feminine,Tatooine,Human,"Attack of the Clones, The Phantom Menace",,
|
||||
Darth Maul,175,80,none,red,yellow,54,male,masculine,Dathomir,Zabrak,The Phantom Menace,Sith speeder,Scimitar
|
||||
Bib Fortuna,180,NA,none,pale,pink,NA,male,masculine,Ryloth,Twi'lek,Return of the Jedi,,
|
||||
Ayla Secura,178,55,none,blue,hazel,48,female,feminine,Ryloth,Twi'lek,"Attack of the Clones, The Phantom Menace, Revenge of the Sith",,
|
||||
Dud Bolt,94,45,none,"blue, grey",yellow,NA,male,masculine,Vulpter,Vulptereen,The Phantom Menace,,
|
||||
Gasgano,122,NA,none,"white, blue",black,NA,male,masculine,Troiken,Xexto,The Phantom Menace,,
|
||||
Ben Quadinaros,163,65,none,"grey, green, yellow",orange,NA,male,masculine,Tund,Toong,The Phantom Menace,,
|
||||
Mace Windu,188,84,none,dark,brown,72,male,masculine,Haruun Kal,Human,"Attack of the Clones, The Phantom Menace, Revenge of the Sith",,
|
||||
Ki-Adi-Mundi,198,82,white,pale,yellow,92,male,masculine,Cerea,Cerean,"Attack of the Clones, The Phantom Menace, Revenge of the Sith",,
|
||||
Kit Fisto,196,87,none,green,black,NA,male,masculine,Glee Anselm,Nautolan,"Attack of the Clones, The Phantom Menace, Revenge of the Sith",,
|
||||
Eeth Koth,171,NA,black,brown,brown,NA,male,masculine,Iridonia,Zabrak,"The Phantom Menace, Revenge of the Sith",,
|
||||
Adi Gallia,184,50,none,dark,blue,NA,female,feminine,Coruscant,Tholothian,"The Phantom Menace, Revenge of the Sith",,
|
||||
Saesee Tiin,188,NA,none,pale,orange,NA,male,masculine,Iktotch,Iktotchi,"The Phantom Menace, Revenge of the Sith",,
|
||||
Yarael Poof,264,NA,none,white,yellow,NA,male,masculine,Quermia,Quermian,The Phantom Menace,,
|
||||
Plo Koon,188,80,none,orange,black,22,male,masculine,Dorin,Kel Dor,"Attack of the Clones, The Phantom Menace, Revenge of the Sith",,Jedi starfighter
|
||||
Mas Amedda,196,NA,none,blue,blue,NA,male,masculine,Champala,Chagrian,"Attack of the Clones, The Phantom Menace",,
|
||||
Gregar Typho,185,85,black,dark,brown,NA,male,masculine,Naboo,Human,Attack of the Clones,,Naboo fighter
|
||||
Cordé,157,NA,brown,light,brown,NA,female,feminine,Naboo,Human,Attack of the Clones,,
|
||||
Cliegg Lars,183,NA,brown,fair,blue,82,male,masculine,Tatooine,Human,Attack of the Clones,,
|
||||
Poggle the Lesser,183,80,none,green,yellow,NA,male,masculine,Geonosis,Geonosian,"Attack of the Clones, Revenge of the Sith",,
|
||||
Luminara Unduli,170,56.2,black,yellow,blue,58,female,feminine,Mirial,Mirialan,"Attack of the Clones, Revenge of the Sith",,
|
||||
Barriss Offee,166,50,black,yellow,blue,40,female,feminine,Mirial,Mirialan,Attack of the Clones,,
|
||||
Dormé,165,NA,brown,light,brown,NA,female,feminine,Naboo,Human,Attack of the Clones,,
|
||||
Dooku,193,80,white,fair,brown,102,male,masculine,Serenno,Human,"Attack of the Clones, Revenge of the Sith",Flitknot speeder,
|
||||
Bail Prestor Organa,191,NA,black,tan,brown,67,male,masculine,Alderaan,Human,"Attack of the Clones, Revenge of the Sith",,
|
||||
Jango Fett,183,79,black,tan,brown,66,male,masculine,Concord Dawn,Human,Attack of the Clones,,
|
||||
Zam Wesell,168,55,blonde,"fair, green, yellow",yellow,NA,female,feminine,Zolan,Clawdite,Attack of the Clones,Koro-2 Exodrive airspeeder,
|
||||
Dexter Jettster,198,102,none,brown,yellow,NA,male,masculine,Ojom,Besalisk,Attack of the Clones,,
|
||||
Lama Su,229,88,none,grey,black,NA,male,masculine,Kamino,Kaminoan,Attack of the Clones,,
|
||||
Taun We,213,NA,none,grey,black,NA,female,feminine,Kamino,Kaminoan,Attack of the Clones,,
|
||||
Jocasta Nu,167,NA,white,fair,blue,NA,female,feminine,Coruscant,Human,Attack of the Clones,,
|
||||
Ratts Tyerell,79,15,none,"grey, blue",unknown,NA,male,masculine,Aleen Minor,Aleena,The Phantom Menace,,
|
||||
R4-P17,96,NA,none,"silver, red","red, blue",NA,none,feminine,NA,Droid,"Attack of the Clones, Revenge of the Sith",,
|
||||
Wat Tambor,193,48,none,"green, grey",unknown,NA,male,masculine,Skako,Skakoan,Attack of the Clones,,
|
||||
San Hill,191,NA,none,grey,gold,NA,male,masculine,Muunilinst,Muun,Attack of the Clones,,
|
||||
Shaak Ti,178,57,none,"red, blue, white",black,NA,female,feminine,Shili,Togruta,"Attack of the Clones, Revenge of the Sith",,
|
||||
Grievous,216,159,none,"brown, white","green, yellow",NA,male,masculine,Kalee,Kaleesh,Revenge of the Sith,Tsmeu-6 personal wheel bike,Belbullab-22 starfighter
|
||||
Tarfful,234,136,brown,brown,blue,NA,male,masculine,Kashyyyk,Wookiee,Revenge of the Sith,,
|
||||
Raymus Antilles,188,79,brown,light,brown,NA,male,masculine,Alderaan,Human,"Revenge of the Sith, A New Hope",,
|
||||
Sly Moore,178,48,none,pale,white,NA,NA,NA,Umbara,NA,"Attack of the Clones, Revenge of the Sith",,
|
||||
Tion Medon,206,80,none,grey,black,NA,male,masculine,Utapau,Pau'an,Revenge of the Sith,,
|
||||
Finn,NA,NA,black,dark,dark,NA,male,masculine,NA,Human,The Force Awakens,,
|
||||
Rey,NA,NA,brown,light,hazel,NA,female,feminine,NA,Human,The Force Awakens,,
|
||||
Poe Dameron,NA,NA,brown,light,brown,NA,male,masculine,NA,Human,The Force Awakens,,T-70 X-wing fighter
|
||||
BB8,NA,NA,none,none,black,NA,none,masculine,NA,Droid,The Force Awakens,,
|
||||
Captain Phasma,NA,NA,unknown,unknown,unknown,NA,NA,NA,NA,NA,The Force Awakens,,
|
||||
Padmé Amidala,165,45,brown,light,brown,46,female,feminine,Naboo,Human,"Attack of the Clones, The Phantom Menace, Revenge of the Sith",,"H-type Nubian yacht, Naboo star skiff, Naboo fighter"
|
||||
|
505
starwars.json
Normal file
505
starwars.json
Normal file
@@ -0,0 +1,505 @@
|
||||
{
|
||||
"count": 6,
|
||||
"next": null,
|
||||
"previous": null,
|
||||
"results": [
|
||||
{
|
||||
"title": "A New Hope",
|
||||
"episode_id": 4,
|
||||
"opening_crawl": "It is a period of civil war.\r\nRebel spaceships, striking\r\nfrom a hidden base, have won\r\ntheir first victory against\r\nthe evil Galactic Empire.\r\n\r\nDuring the battle, Rebel\r\nspies managed to steal secret\r\nplans to the Empire's\r\nultimate weapon, the DEATH\r\nSTAR, an armored space\r\nstation with enough power\r\nto destroy an entire planet.\r\n\r\nPursued by the Empire's\r\nsinister agents, Princess\r\nLeia races home aboard her\r\nstarship, custodian of the\r\nstolen plans that can save her\r\npeople and restore\r\nfreedom to the galaxy....",
|
||||
"director": "George Lucas",
|
||||
"producer": "Gary Kurtz, Rick McCallum",
|
||||
"release_date": "1977-05-25",
|
||||
"characters": [
|
||||
"https://swapi.dev/api/people/1/",
|
||||
"https://swapi.dev/api/people/2/",
|
||||
"https://swapi.dev/api/people/3/",
|
||||
"https://swapi.dev/api/people/4/",
|
||||
"https://swapi.dev/api/people/5/",
|
||||
"https://swapi.dev/api/people/6/",
|
||||
"https://swapi.dev/api/people/7/",
|
||||
"https://swapi.dev/api/people/8/",
|
||||
"https://swapi.dev/api/people/9/",
|
||||
"https://swapi.dev/api/people/10/",
|
||||
"https://swapi.dev/api/people/12/",
|
||||
"https://swapi.dev/api/people/13/",
|
||||
"https://swapi.dev/api/people/14/",
|
||||
"https://swapi.dev/api/people/15/",
|
||||
"https://swapi.dev/api/people/16/",
|
||||
"https://swapi.dev/api/people/18/",
|
||||
"https://swapi.dev/api/people/19/",
|
||||
"https://swapi.dev/api/people/81/"
|
||||
],
|
||||
"planets": [
|
||||
"https://swapi.dev/api/planets/1/",
|
||||
"https://swapi.dev/api/planets/2/",
|
||||
"https://swapi.dev/api/planets/3/"
|
||||
],
|
||||
"starships": [
|
||||
"https://swapi.dev/api/starships/2/",
|
||||
"https://swapi.dev/api/starships/3/",
|
||||
"https://swapi.dev/api/starships/5/",
|
||||
"https://swapi.dev/api/starships/9/",
|
||||
"https://swapi.dev/api/starships/10/",
|
||||
"https://swapi.dev/api/starships/11/",
|
||||
"https://swapi.dev/api/starships/12/",
|
||||
"https://swapi.dev/api/starships/13/"
|
||||
],
|
||||
"vehicles": [
|
||||
"https://swapi.dev/api/vehicles/4/",
|
||||
"https://swapi.dev/api/vehicles/6/",
|
||||
"https://swapi.dev/api/vehicles/7/",
|
||||
"https://swapi.dev/api/vehicles/8/"
|
||||
],
|
||||
"species": [
|
||||
"https://swapi.dev/api/species/1/",
|
||||
"https://swapi.dev/api/species/2/",
|
||||
"https://swapi.dev/api/species/3/",
|
||||
"https://swapi.dev/api/species/4/",
|
||||
"https://swapi.dev/api/species/5/"
|
||||
],
|
||||
"created": "2014-12-10T14:23:31.880000Z",
|
||||
"edited": "2014-12-20T19:49:45.256000Z",
|
||||
"url": "https://swapi.dev/api/films/1/"
|
||||
},
|
||||
{
|
||||
"title": "The Empire Strikes Back",
|
||||
"episode_id": 5,
|
||||
"opening_crawl": "It is a dark time for the\r\nRebellion. Although the Death\r\nStar has been destroyed,\r\nImperial troops have driven the\r\nRebel forces from their hidden\r\nbase and pursued them across\r\nthe galaxy.\r\n\r\nEvading the dreaded Imperial\r\nStarfleet, a group of freedom\r\nfighters led by Luke Skywalker\r\nhas established a new secret\r\nbase on the remote ice world\r\nof Hoth.\r\n\r\nThe evil lord Darth Vader,\r\nobsessed with finding young\r\nSkywalker, has dispatched\r\nthousands of remote probes into\r\nthe far reaches of space....",
|
||||
"director": "Irvin Kershner",
|
||||
"producer": "Gary Kurtz, Rick McCallum",
|
||||
"release_date": "1980-05-17",
|
||||
"characters": [
|
||||
"https://swapi.dev/api/people/1/",
|
||||
"https://swapi.dev/api/people/2/",
|
||||
"https://swapi.dev/api/people/3/",
|
||||
"https://swapi.dev/api/people/4/",
|
||||
"https://swapi.dev/api/people/5/",
|
||||
"https://swapi.dev/api/people/10/",
|
||||
"https://swapi.dev/api/people/13/",
|
||||
"https://swapi.dev/api/people/14/",
|
||||
"https://swapi.dev/api/people/18/",
|
||||
"https://swapi.dev/api/people/20/",
|
||||
"https://swapi.dev/api/people/21/",
|
||||
"https://swapi.dev/api/people/22/",
|
||||
"https://swapi.dev/api/people/23/",
|
||||
"https://swapi.dev/api/people/24/",
|
||||
"https://swapi.dev/api/people/25/",
|
||||
"https://swapi.dev/api/people/26/"
|
||||
],
|
||||
"planets": [
|
||||
"https://swapi.dev/api/planets/4/",
|
||||
"https://swapi.dev/api/planets/5/",
|
||||
"https://swapi.dev/api/planets/6/",
|
||||
"https://swapi.dev/api/planets/27/"
|
||||
],
|
||||
"starships": [
|
||||
"https://swapi.dev/api/starships/3/",
|
||||
"https://swapi.dev/api/starships/10/",
|
||||
"https://swapi.dev/api/starships/11/",
|
||||
"https://swapi.dev/api/starships/12/",
|
||||
"https://swapi.dev/api/starships/15/",
|
||||
"https://swapi.dev/api/starships/17/",
|
||||
"https://swapi.dev/api/starships/21/",
|
||||
"https://swapi.dev/api/starships/22/",
|
||||
"https://swapi.dev/api/starships/23/"
|
||||
],
|
||||
"vehicles": [
|
||||
"https://swapi.dev/api/vehicles/8/",
|
||||
"https://swapi.dev/api/vehicles/14/",
|
||||
"https://swapi.dev/api/vehicles/16/",
|
||||
"https://swapi.dev/api/vehicles/18/",
|
||||
"https://swapi.dev/api/vehicles/19/",
|
||||
"https://swapi.dev/api/vehicles/20/"
|
||||
],
|
||||
"species": [
|
||||
"https://swapi.dev/api/species/1/",
|
||||
"https://swapi.dev/api/species/2/",
|
||||
"https://swapi.dev/api/species/3/",
|
||||
"https://swapi.dev/api/species/6/",
|
||||
"https://swapi.dev/api/species/7/"
|
||||
],
|
||||
"created": "2014-12-12T11:26:24.656000Z",
|
||||
"edited": "2014-12-15T13:07:53.386000Z",
|
||||
"url": "https://swapi.dev/api/films/2/"
|
||||
},
|
||||
{
|
||||
"title": "Return of the Jedi",
|
||||
"episode_id": 6,
|
||||
"opening_crawl": "Luke Skywalker has returned to\r\nhis home planet of Tatooine in\r\nan attempt to rescue his\r\nfriend Han Solo from the\r\nclutches of the vile gangster\r\nJabba the Hutt.\r\n\r\nLittle does Luke know that the\r\nGALACTIC EMPIRE has secretly\r\nbegun construction on a new\r\narmored space station even\r\nmore powerful than the first\r\ndreaded Death Star.\r\n\r\nWhen completed, this ultimate\r\nweapon will spell certain doom\r\nfor the small band of rebels\r\nstruggling to restore freedom\r\nto the galaxy...",
|
||||
"director": "Richard Marquand",
|
||||
"producer": "Howard G. Kazanjian, George Lucas, Rick McCallum",
|
||||
"release_date": "1983-05-25",
|
||||
"characters": [
|
||||
"https://swapi.dev/api/people/1/",
|
||||
"https://swapi.dev/api/people/2/",
|
||||
"https://swapi.dev/api/people/3/",
|
||||
"https://swapi.dev/api/people/4/",
|
||||
"https://swapi.dev/api/people/5/",
|
||||
"https://swapi.dev/api/people/10/",
|
||||
"https://swapi.dev/api/people/13/",
|
||||
"https://swapi.dev/api/people/14/",
|
||||
"https://swapi.dev/api/people/16/",
|
||||
"https://swapi.dev/api/people/18/",
|
||||
"https://swapi.dev/api/people/20/",
|
||||
"https://swapi.dev/api/people/21/",
|
||||
"https://swapi.dev/api/people/22/",
|
||||
"https://swapi.dev/api/people/25/",
|
||||
"https://swapi.dev/api/people/27/",
|
||||
"https://swapi.dev/api/people/28/",
|
||||
"https://swapi.dev/api/people/29/",
|
||||
"https://swapi.dev/api/people/30/",
|
||||
"https://swapi.dev/api/people/31/",
|
||||
"https://swapi.dev/api/people/45/"
|
||||
],
|
||||
"planets": [
|
||||
"https://swapi.dev/api/planets/1/",
|
||||
"https://swapi.dev/api/planets/5/",
|
||||
"https://swapi.dev/api/planets/7/",
|
||||
"https://swapi.dev/api/planets/8/",
|
||||
"https://swapi.dev/api/planets/9/"
|
||||
],
|
||||
"starships": [
|
||||
"https://swapi.dev/api/starships/2/",
|
||||
"https://swapi.dev/api/starships/3/",
|
||||
"https://swapi.dev/api/starships/10/",
|
||||
"https://swapi.dev/api/starships/11/",
|
||||
"https://swapi.dev/api/starships/12/",
|
||||
"https://swapi.dev/api/starships/15/",
|
||||
"https://swapi.dev/api/starships/17/",
|
||||
"https://swapi.dev/api/starships/22/",
|
||||
"https://swapi.dev/api/starships/23/",
|
||||
"https://swapi.dev/api/starships/27/",
|
||||
"https://swapi.dev/api/starships/28/",
|
||||
"https://swapi.dev/api/starships/29/"
|
||||
],
|
||||
"vehicles": [
|
||||
"https://swapi.dev/api/vehicles/8/",
|
||||
"https://swapi.dev/api/vehicles/16/",
|
||||
"https://swapi.dev/api/vehicles/18/",
|
||||
"https://swapi.dev/api/vehicles/19/",
|
||||
"https://swapi.dev/api/vehicles/24/",
|
||||
"https://swapi.dev/api/vehicles/25/",
|
||||
"https://swapi.dev/api/vehicles/26/",
|
||||
"https://swapi.dev/api/vehicles/30/"
|
||||
],
|
||||
"species": [
|
||||
"https://swapi.dev/api/species/1/",
|
||||
"https://swapi.dev/api/species/2/",
|
||||
"https://swapi.dev/api/species/3/",
|
||||
"https://swapi.dev/api/species/5/",
|
||||
"https://swapi.dev/api/species/6/",
|
||||
"https://swapi.dev/api/species/8/",
|
||||
"https://swapi.dev/api/species/9/",
|
||||
"https://swapi.dev/api/species/10/",
|
||||
"https://swapi.dev/api/species/15/"
|
||||
],
|
||||
"created": "2014-12-18T10:39:33.255000Z",
|
||||
"edited": "2014-12-20T09:48:37.462000Z",
|
||||
"url": "https://swapi.dev/api/films/3/"
|
||||
},
|
||||
{
|
||||
"title": "The Phantom Menace",
|
||||
"episode_id": 1,
|
||||
"opening_crawl": "Turmoil has engulfed the\r\nGalactic Republic. The taxation\r\nof trade routes to outlying star\r\nsystems is in dispute.\r\n\r\nHoping to resolve the matter\r\nwith a blockade of deadly\r\nbattleships, the greedy Trade\r\nFederation has stopped all\r\nshipping to the small planet\r\nof Naboo.\r\n\r\nWhile the Congress of the\r\nRepublic endlessly debates\r\nthis alarming chain of events,\r\nthe Supreme Chancellor has\r\nsecretly dispatched two Jedi\r\nKnights, the guardians of\r\npeace and justice in the\r\ngalaxy, to settle the conflict....",
|
||||
"director": "George Lucas",
|
||||
"producer": "Rick McCallum",
|
||||
"release_date": "1999-05-19",
|
||||
"characters": [
|
||||
"https://swapi.dev/api/people/2/",
|
||||
"https://swapi.dev/api/people/3/",
|
||||
"https://swapi.dev/api/people/10/",
|
||||
"https://swapi.dev/api/people/11/",
|
||||
"https://swapi.dev/api/people/16/",
|
||||
"https://swapi.dev/api/people/20/",
|
||||
"https://swapi.dev/api/people/21/",
|
||||
"https://swapi.dev/api/people/32/",
|
||||
"https://swapi.dev/api/people/33/",
|
||||
"https://swapi.dev/api/people/34/",
|
||||
"https://swapi.dev/api/people/35/",
|
||||
"https://swapi.dev/api/people/36/",
|
||||
"https://swapi.dev/api/people/37/",
|
||||
"https://swapi.dev/api/people/38/",
|
||||
"https://swapi.dev/api/people/39/",
|
||||
"https://swapi.dev/api/people/40/",
|
||||
"https://swapi.dev/api/people/41/",
|
||||
"https://swapi.dev/api/people/42/",
|
||||
"https://swapi.dev/api/people/43/",
|
||||
"https://swapi.dev/api/people/44/",
|
||||
"https://swapi.dev/api/people/46/",
|
||||
"https://swapi.dev/api/people/47/",
|
||||
"https://swapi.dev/api/people/48/",
|
||||
"https://swapi.dev/api/people/49/",
|
||||
"https://swapi.dev/api/people/50/",
|
||||
"https://swapi.dev/api/people/51/",
|
||||
"https://swapi.dev/api/people/52/",
|
||||
"https://swapi.dev/api/people/53/",
|
||||
"https://swapi.dev/api/people/54/",
|
||||
"https://swapi.dev/api/people/55/",
|
||||
"https://swapi.dev/api/people/56/",
|
||||
"https://swapi.dev/api/people/57/",
|
||||
"https://swapi.dev/api/people/58/",
|
||||
"https://swapi.dev/api/people/59/"
|
||||
],
|
||||
"planets": [
|
||||
"https://swapi.dev/api/planets/1/",
|
||||
"https://swapi.dev/api/planets/8/",
|
||||
"https://swapi.dev/api/planets/9/"
|
||||
],
|
||||
"starships": [
|
||||
"https://swapi.dev/api/starships/31/",
|
||||
"https://swapi.dev/api/starships/32/",
|
||||
"https://swapi.dev/api/starships/39/",
|
||||
"https://swapi.dev/api/starships/40/",
|
||||
"https://swapi.dev/api/starships/41/"
|
||||
],
|
||||
"vehicles": [
|
||||
"https://swapi.dev/api/vehicles/33/",
|
||||
"https://swapi.dev/api/vehicles/34/",
|
||||
"https://swapi.dev/api/vehicles/35/",
|
||||
"https://swapi.dev/api/vehicles/36/",
|
||||
"https://swapi.dev/api/vehicles/37/",
|
||||
"https://swapi.dev/api/vehicles/38/",
|
||||
"https://swapi.dev/api/vehicles/42/"
|
||||
],
|
||||
"species": [
|
||||
"https://swapi.dev/api/species/1/",
|
||||
"https://swapi.dev/api/species/2/",
|
||||
"https://swapi.dev/api/species/6/",
|
||||
"https://swapi.dev/api/species/11/",
|
||||
"https://swapi.dev/api/species/12/",
|
||||
"https://swapi.dev/api/species/13/",
|
||||
"https://swapi.dev/api/species/14/",
|
||||
"https://swapi.dev/api/species/15/",
|
||||
"https://swapi.dev/api/species/16/",
|
||||
"https://swapi.dev/api/species/17/",
|
||||
"https://swapi.dev/api/species/18/",
|
||||
"https://swapi.dev/api/species/19/",
|
||||
"https://swapi.dev/api/species/20/",
|
||||
"https://swapi.dev/api/species/21/",
|
||||
"https://swapi.dev/api/species/22/",
|
||||
"https://swapi.dev/api/species/23/",
|
||||
"https://swapi.dev/api/species/24/",
|
||||
"https://swapi.dev/api/species/25/",
|
||||
"https://swapi.dev/api/species/26/",
|
||||
"https://swapi.dev/api/species/27/"
|
||||
],
|
||||
"created": "2014-12-19T16:52:55.740000Z",
|
||||
"edited": "2014-12-20T10:54:07.216000Z",
|
||||
"url": "https://swapi.dev/api/films/4/"
|
||||
},
|
||||
{
|
||||
"title": "Attack of the Clones",
|
||||
"episode_id": 2,
|
||||
"opening_crawl": "There is unrest in the Galactic\r\nSenate. Several thousand solar\r\nsystems have declared their\r\nintentions to leave the Republic.\r\n\r\nThis separatist movement,\r\nunder the leadership of the\r\nmysterious Count Dooku, has\r\nmade it difficult for the limited\r\nnumber of Jedi Knights to maintain \r\npeace and order in the galaxy.\r\n\r\nSenator Amidala, the former\r\nQueen of Naboo, is returning\r\nto the Galactic Senate to vote\r\non the critical issue of creating\r\nan ARMY OF THE REPUBLIC\r\nto assist the overwhelmed\r\nJedi....",
|
||||
"director": "George Lucas",
|
||||
"producer": "Rick McCallum",
|
||||
"release_date": "2002-05-16",
|
||||
"characters": [
|
||||
"https://swapi.dev/api/people/2/",
|
||||
"https://swapi.dev/api/people/3/",
|
||||
"https://swapi.dev/api/people/6/",
|
||||
"https://swapi.dev/api/people/7/",
|
||||
"https://swapi.dev/api/people/10/",
|
||||
"https://swapi.dev/api/people/11/",
|
||||
"https://swapi.dev/api/people/20/",
|
||||
"https://swapi.dev/api/people/21/",
|
||||
"https://swapi.dev/api/people/22/",
|
||||
"https://swapi.dev/api/people/33/",
|
||||
"https://swapi.dev/api/people/35/",
|
||||
"https://swapi.dev/api/people/36/",
|
||||
"https://swapi.dev/api/people/40/",
|
||||
"https://swapi.dev/api/people/43/",
|
||||
"https://swapi.dev/api/people/46/",
|
||||
"https://swapi.dev/api/people/51/",
|
||||
"https://swapi.dev/api/people/52/",
|
||||
"https://swapi.dev/api/people/53/",
|
||||
"https://swapi.dev/api/people/58/",
|
||||
"https://swapi.dev/api/people/59/",
|
||||
"https://swapi.dev/api/people/60/",
|
||||
"https://swapi.dev/api/people/61/",
|
||||
"https://swapi.dev/api/people/62/",
|
||||
"https://swapi.dev/api/people/63/",
|
||||
"https://swapi.dev/api/people/64/",
|
||||
"https://swapi.dev/api/people/65/",
|
||||
"https://swapi.dev/api/people/66/",
|
||||
"https://swapi.dev/api/people/67/",
|
||||
"https://swapi.dev/api/people/68/",
|
||||
"https://swapi.dev/api/people/69/",
|
||||
"https://swapi.dev/api/people/70/",
|
||||
"https://swapi.dev/api/people/71/",
|
||||
"https://swapi.dev/api/people/72/",
|
||||
"https://swapi.dev/api/people/73/",
|
||||
"https://swapi.dev/api/people/74/",
|
||||
"https://swapi.dev/api/people/75/",
|
||||
"https://swapi.dev/api/people/76/",
|
||||
"https://swapi.dev/api/people/77/",
|
||||
"https://swapi.dev/api/people/78/",
|
||||
"https://swapi.dev/api/people/82/"
|
||||
],
|
||||
"planets": [
|
||||
"https://swapi.dev/api/planets/1/",
|
||||
"https://swapi.dev/api/planets/8/",
|
||||
"https://swapi.dev/api/planets/9/",
|
||||
"https://swapi.dev/api/planets/10/",
|
||||
"https://swapi.dev/api/planets/11/"
|
||||
],
|
||||
"starships": [
|
||||
"https://swapi.dev/api/starships/21/",
|
||||
"https://swapi.dev/api/starships/32/",
|
||||
"https://swapi.dev/api/starships/39/",
|
||||
"https://swapi.dev/api/starships/43/",
|
||||
"https://swapi.dev/api/starships/47/",
|
||||
"https://swapi.dev/api/starships/48/",
|
||||
"https://swapi.dev/api/starships/49/",
|
||||
"https://swapi.dev/api/starships/52/",
|
||||
"https://swapi.dev/api/starships/58/"
|
||||
],
|
||||
"vehicles": [
|
||||
"https://swapi.dev/api/vehicles/4/",
|
||||
"https://swapi.dev/api/vehicles/44/",
|
||||
"https://swapi.dev/api/vehicles/45/",
|
||||
"https://swapi.dev/api/vehicles/46/",
|
||||
"https://swapi.dev/api/vehicles/50/",
|
||||
"https://swapi.dev/api/vehicles/51/",
|
||||
"https://swapi.dev/api/vehicles/53/",
|
||||
"https://swapi.dev/api/vehicles/54/",
|
||||
"https://swapi.dev/api/vehicles/55/",
|
||||
"https://swapi.dev/api/vehicles/56/",
|
||||
"https://swapi.dev/api/vehicles/57/"
|
||||
],
|
||||
"species": [
|
||||
"https://swapi.dev/api/species/1/",
|
||||
"https://swapi.dev/api/species/2/",
|
||||
"https://swapi.dev/api/species/6/",
|
||||
"https://swapi.dev/api/species/12/",
|
||||
"https://swapi.dev/api/species/13/",
|
||||
"https://swapi.dev/api/species/15/",
|
||||
"https://swapi.dev/api/species/28/",
|
||||
"https://swapi.dev/api/species/29/",
|
||||
"https://swapi.dev/api/species/30/",
|
||||
"https://swapi.dev/api/species/31/",
|
||||
"https://swapi.dev/api/species/32/",
|
||||
"https://swapi.dev/api/species/33/",
|
||||
"https://swapi.dev/api/species/34/",
|
||||
"https://swapi.dev/api/species/35/"
|
||||
],
|
||||
"created": "2014-12-20T10:57:57.886000Z",
|
||||
"edited": "2014-12-20T20:18:48.516000Z",
|
||||
"url": "https://swapi.dev/api/films/5/"
|
||||
},
|
||||
{
|
||||
"title": "Revenge of the Sith",
|
||||
"episode_id": 3,
|
||||
"opening_crawl": "War! The Republic is crumbling\r\nunder attacks by the ruthless\r\nSith Lord, Count Dooku.\r\nThere are heroes on both sides.\r\nEvil is everywhere.\r\n\r\nIn a stunning move, the\r\nfiendish droid leader, General\r\nGrievous, has swept into the\r\nRepublic capital and kidnapped\r\nChancellor Palpatine, leader of\r\nthe Galactic Senate.\r\n\r\nAs the Separatist Droid Army\r\nattempts to flee the besieged\r\ncapital with their valuable\r\nhostage, two Jedi Knights lead a\r\ndesperate mission to rescue the\r\ncaptive Chancellor....",
|
||||
"director": "George Lucas",
|
||||
"producer": "Rick McCallum",
|
||||
"release_date": "2005-05-19",
|
||||
"characters": [
|
||||
"https://swapi.dev/api/people/1/",
|
||||
"https://swapi.dev/api/people/2/",
|
||||
"https://swapi.dev/api/people/3/",
|
||||
"https://swapi.dev/api/people/4/",
|
||||
"https://swapi.dev/api/people/5/",
|
||||
"https://swapi.dev/api/people/6/",
|
||||
"https://swapi.dev/api/people/7/",
|
||||
"https://swapi.dev/api/people/10/",
|
||||
"https://swapi.dev/api/people/11/",
|
||||
"https://swapi.dev/api/people/12/",
|
||||
"https://swapi.dev/api/people/13/",
|
||||
"https://swapi.dev/api/people/20/",
|
||||
"https://swapi.dev/api/people/21/",
|
||||
"https://swapi.dev/api/people/33/",
|
||||
"https://swapi.dev/api/people/35/",
|
||||
"https://swapi.dev/api/people/46/",
|
||||
"https://swapi.dev/api/people/51/",
|
||||
"https://swapi.dev/api/people/52/",
|
||||
"https://swapi.dev/api/people/53/",
|
||||
"https://swapi.dev/api/people/54/",
|
||||
"https://swapi.dev/api/people/55/",
|
||||
"https://swapi.dev/api/people/56/",
|
||||
"https://swapi.dev/api/people/58/",
|
||||
"https://swapi.dev/api/people/63/",
|
||||
"https://swapi.dev/api/people/64/",
|
||||
"https://swapi.dev/api/people/67/",
|
||||
"https://swapi.dev/api/people/68/",
|
||||
"https://swapi.dev/api/people/75/",
|
||||
"https://swapi.dev/api/people/78/",
|
||||
"https://swapi.dev/api/people/79/",
|
||||
"https://swapi.dev/api/people/80/",
|
||||
"https://swapi.dev/api/people/81/",
|
||||
"https://swapi.dev/api/people/82/",
|
||||
"https://swapi.dev/api/people/83/"
|
||||
],
|
||||
"planets": [
|
||||
"https://swapi.dev/api/planets/1/",
|
||||
"https://swapi.dev/api/planets/2/",
|
||||
"https://swapi.dev/api/planets/5/",
|
||||
"https://swapi.dev/api/planets/8/",
|
||||
"https://swapi.dev/api/planets/9/",
|
||||
"https://swapi.dev/api/planets/12/",
|
||||
"https://swapi.dev/api/planets/13/",
|
||||
"https://swapi.dev/api/planets/14/",
|
||||
"https://swapi.dev/api/planets/15/",
|
||||
"https://swapi.dev/api/planets/16/",
|
||||
"https://swapi.dev/api/planets/17/",
|
||||
"https://swapi.dev/api/planets/18/",
|
||||
"https://swapi.dev/api/planets/19/"
|
||||
],
|
||||
"starships": [
|
||||
"https://swapi.dev/api/starships/2/",
|
||||
"https://swapi.dev/api/starships/32/",
|
||||
"https://swapi.dev/api/starships/48/",
|
||||
"https://swapi.dev/api/starships/59/",
|
||||
"https://swapi.dev/api/starships/61/",
|
||||
"https://swapi.dev/api/starships/63/",
|
||||
"https://swapi.dev/api/starships/64/",
|
||||
"https://swapi.dev/api/starships/65/",
|
||||
"https://swapi.dev/api/starships/66/",
|
||||
"https://swapi.dev/api/starships/68/",
|
||||
"https://swapi.dev/api/starships/74/",
|
||||
"https://swapi.dev/api/starships/75/"
|
||||
],
|
||||
"vehicles": [
|
||||
"https://swapi.dev/api/vehicles/33/",
|
||||
"https://swapi.dev/api/vehicles/50/",
|
||||
"https://swapi.dev/api/vehicles/53/",
|
||||
"https://swapi.dev/api/vehicles/56/",
|
||||
"https://swapi.dev/api/vehicles/60/",
|
||||
"https://swapi.dev/api/vehicles/62/",
|
||||
"https://swapi.dev/api/vehicles/67/",
|
||||
"https://swapi.dev/api/vehicles/69/",
|
||||
"https://swapi.dev/api/vehicles/70/",
|
||||
"https://swapi.dev/api/vehicles/71/",
|
||||
"https://swapi.dev/api/vehicles/72/",
|
||||
"https://swapi.dev/api/vehicles/73/",
|
||||
"https://swapi.dev/api/vehicles/76/"
|
||||
],
|
||||
"species": [
|
||||
"https://swapi.dev/api/species/1/",
|
||||
"https://swapi.dev/api/species/2/",
|
||||
"https://swapi.dev/api/species/3/",
|
||||
"https://swapi.dev/api/species/6/",
|
||||
"https://swapi.dev/api/species/15/",
|
||||
"https://swapi.dev/api/species/19/",
|
||||
"https://swapi.dev/api/species/20/",
|
||||
"https://swapi.dev/api/species/23/",
|
||||
"https://swapi.dev/api/species/24/",
|
||||
"https://swapi.dev/api/species/25/",
|
||||
"https://swapi.dev/api/species/26/",
|
||||
"https://swapi.dev/api/species/27/",
|
||||
"https://swapi.dev/api/species/28/",
|
||||
"https://swapi.dev/api/species/29/",
|
||||
"https://swapi.dev/api/species/30/",
|
||||
"https://swapi.dev/api/species/33/",
|
||||
"https://swapi.dev/api/species/34/",
|
||||
"https://swapi.dev/api/species/35/",
|
||||
"https://swapi.dev/api/species/36/",
|
||||
"https://swapi.dev/api/species/37/"
|
||||
],
|
||||
"created": "2014-12-20T18:49:38.403000Z",
|
||||
"edited": "2014-12-20T20:47:52.073000Z",
|
||||
"url": "https://swapi.dev/api/films/6/"
|
||||
}
|
||||
]
|
||||
}
|
||||
6
test.py
Normal file
6
test.py
Normal file
@@ -0,0 +1,6 @@
|
||||
res = []
|
||||
for i in range(1,2+1,10):
|
||||
res.append([])
|
||||
for j in range(i, i+10):
|
||||
if j**2 % k != 0:
|
||||
res[-1].append(j**2)
|
||||
1460
weather.json
Normal file
1460
weather.json
Normal file
File diff suppressed because it is too large
Load Diff
54
п.py
Normal file
54
п.py
Normal file
@@ -0,0 +1,54 @@
|
||||
f=open('32.txt')
|
||||
f.readline()
|
||||
a1=[]
|
||||
a2=[]
|
||||
a3=[]
|
||||
for s in f.readlines():
|
||||
s = s.replace(',', '.').split()
|
||||
x, y = float(s[0]), float(s[1])
|
||||
if x < 3 and y < 4:
|
||||
a1.append((x, y))
|
||||
else:
|
||||
if x<5 and y>6:
|
||||
a2.append((x, y))
|
||||
else:
|
||||
a3.append((x, y))
|
||||
|
||||
sm1 = sm2 = sm3 = 10**10
|
||||
x1=y1=x2=y2=x3=y3=0
|
||||
for i in range(len(a1)):
|
||||
d_sm = 0
|
||||
for j in range(len(a1)):
|
||||
d_sm += ((a1[j][0] - a1[i][0])**2 + (a1[j][1] - a1[i][1])**2) ** 0.5
|
||||
|
||||
if d_sm < sm1:
|
||||
x1 = a1[i][0]
|
||||
y1 = a1[i][1]
|
||||
sm1 = d_sm
|
||||
|
||||
for i in range(len(a2)):
|
||||
d_sm = 0
|
||||
for j in range(len(a2)):
|
||||
d_sm += ((a2[j][0] - a2[i][0])**2 + (a2[j][1] - a2[i][1])**2) ** 0.5
|
||||
|
||||
if d_sm < sm2:
|
||||
x2 = a2[i][0]
|
||||
y2 = a2[i][1]
|
||||
sm2 = d_sm
|
||||
|
||||
for i in range(len(a3)):
|
||||
d_sm = 0
|
||||
for j in range(len(a3)):
|
||||
d_sm += ((a3[j][0] - a3[i][0])**2 + (a3[j][1] - a3[i][1])**2) ** 0.5
|
||||
|
||||
if d_sm < sm3:
|
||||
x3 = a3[i][0]
|
||||
y3 = a3[i][1]
|
||||
sm3 = d_sm
|
||||
|
||||
|
||||
Px = (x1+x2+x3)/3
|
||||
Py = (y1+y2+y3)/3
|
||||
|
||||
|
||||
print(int(Px*10000), int(Py*10000))
|
||||
Reference in New Issue
Block a user