Cov txheej txheem:

Zomzoc: Cosmic Weight Converter: 5 Kauj Ruam
Zomzoc: Cosmic Weight Converter: 5 Kauj Ruam

Video: Zomzoc: Cosmic Weight Converter: 5 Kauj Ruam

Video: Zomzoc: Cosmic Weight Converter: 5 Kauj Ruam
Video: She Completely Called Me Out 😂 2024, Hlis ntuj nqeg
Anonim
Image
Image

    ZoMzOc:

Lub cosmic hnyav hloov pauv tus qauv !!!! Yooj yim heev thiab yooj yim tsim software pib !!

Lub hom phiaj tsab ntawv no yog txhawm rau nrhiav koj qhov hnyav ntawm cov ntiaj chaw sib txawv !! Yooj yim li ntawd !!

Koj tuaj yeem nkag mus rau hauv coding zoo li lub tswb zoo nkauj !! Tsis txhob txhawj xeeb yog tias koj tsis muaj lub tswv yim txog coding thiab lwm yam khoom ua rau kuv yuav ua kom yooj yim rau koj!

Tsuas yog ua raws li qhia yog tias koj xav tias zoo li neeg txawv teb chaws poob lawm

!!! NCO TSEG !!!!

Txhua cov ntaub ntawv xav tau yuav muab.

Lub hom phiaj tsab ntawv no yog txhawm rau nrhiav koj qhov hnyav ntawm cov ntiaj chaw sib txawv !! Yooj yim li ntawd !!

Khoom siv

  • Ua siab ntev
  • Xyaum ua
  • Ntseeg Siab
  • Koj tus kheej (tsuas yog tso dag)
  • Python IDE (zoo dua yog tias koj xaiv VS code)
  • Download tau Links:
  • GitHub: nyem qhov no
  • Tsav: nyem ntawm no
  • SourceCode: clone tam sim no !!

Kauj Ruam 1: Ntshuam Math Horror

Importing Math Horror
Importing Math Horror

ntshuam lej

Lub tsev qiv ntawv no ua rau koj lub neej yooj yim dua rau kev suav thiab lwm yam khoom xws li puag ncig, nruab nrab, thiab lwm yam …

"ntshuam" - zoo li hu rau koj tus phooj ywg, qiv cov khoom tsim nyog kom ua tiav cov khoom!

"lej" - yog pob uas nws muaj cov khoom tsim nyog los ua koj cov khoom ua ncuav qab zib yooj yim dua!

Kauj ruam 2: Siv cov tswv yim ………

Siv cov tswv yim ………
Siv cov tswv yim ………

"Nws yog ib qho tseem ceeb kom koj cov neeg siv tsis paub txog cov khoom nyuaj" - kev rho tawm (txoj cai zais cov khoom tseem ceeb)

#syntax: (tsis txhob ntaus qhov no)

# variable_toStore = cov tswv yim ("cov lus no yog nug kom nkag mus") # Tam sim no TUS NEEG CODE user_weight = input ("Hav, nkag koj qhov hnyav hauv Kg !! / n") Hurray, koj tau ua tiav txoj haujlwm los ua cov tswv yim !!! Yog li, koj tau pom tias # tau siv los tshaj tawm cov lus uas feem ntau tsis quav ntsej. yog zoo li lub ntim uas muaj tag nrho cov ntaub ntawv koj nqa los ntawm tus neeg siv ib ntus !! Qhov ntawd txhais tau tias nws tuaj yeem hloov kho lub sijhawm !!

Kauj Ruam 3: Tshawb Nrhiav Pawg Neeg

Tshawb nrhiav pawg neeg !!
Tshawb nrhiav pawg neeg !!

#hauv kev suav nab npawb yog qhov yooj yim heev

New_weight = puag ncig (user_weight/9.8) * other_planet_GravitationalForce

Nov yog cov lej lej, tab sis nws yooj yim…

Txhua yam koj yuav tsum yog faib koj qhov hnyav hauv ntiaj teb los ntawm lwm lub ntiaj teb lub zog nqus …

I.e = (koj_weight/9.8) * lwm lub ntiaj teb GravitationalForce

ntawm no 9.8 yog nrawm vim lub ntiaj teb lub ntiajteb txawj nqus.

koj tau hais los npog cov hauv paus ntawm qhov programing, mus zoo geeks !!

Kauj ruam 4: Qhia Koj Tus Kheej

Qhia Koj
Qhia Koj

#print ("muab tso rau ntawm no kom pom / n")

print (New_weight) #los tso saib qhov hloov pauv hnyav !!

Yog li, qhov no yog nws, nws yog lub sijhawm los qhia tawm koj cov haujlwm !!

"luam ntawv" yog siv los yooj yim nkhaus koj lub desktop zaub nrog cov khoom koj muab tso rau hauv !!

Qhov no yog qhov tseem ceeb ntawm nab hab sej thiab kuv tau sim ua kom yooj yim li sai tau thiab yog tias koj xav kawm ntau ntxiv tsuas yog Google nws thiab muaj ntau cov peev txheej tawm rau koj tshawb !!!

Kauj Ruam 5: Xaus;

Xaus
Xaus
Xaus
Xaus

Yuav ua dab tsi ntxiv:

tsuas yog coj koj tus CMD (hais kom sai) lossis lub davhlau ya nyob twg. Yog li pib los ntawm kev ntaus ntawv, ~ $ python project_name.py

Txhawm rau khiav qhov program nab nab !!! Kuv tau sim tiag kuv qhov zoo tshaj plaws kom ncav cuag txhua tus yog li kuv tau khaws cia yooj yim li sai tau thiab rau txhua qhov coding geeks thov ua siab ntev nrog nws !!! (Kuv tsis yog tus kws tshaj lij programmer).

Qhov tseeb ntawm txoj haujlwm tau muab ntawm no: Comic_Weight_Converter

Hais txog qhov haujlwm, qhov no yog kev sim me ntsis los siv cov hauv paus ntawm kev ua lej yav dhau los kom ua tiav qib cosmic super suav thiab kev kwv yees !! Nov yog qhov kev lom zem me ntsis los siv MATH thiab tsim kev kub ntxhov loj hauv kev suav !! Ua tsaug txhua tus !!

Zoo Siab Coding.

Pom zoo: