Cov txheej txheem:
Video: Puas yog sau hom ntaub ntawv hauv Python?
2024 Tus sau: Lynn Donovan | [email protected]. Kawg hloov kho: 2023-12-15 23:47
Sau npe . Cov npe yog ib qho tseem ceeb heev variable type hauv Python . A lis tuaj yeem muaj cov khoom muaj nqis. Sau npe Cov kev hloov pauv tau tshaj tawm los ntawm kev siv cov kab ke hauv qab no sib txawv npe.
Kuj nug, dab tsi yog txhua hom ntaub ntawv hauv Python?
Basic Data Types hauv Python
- Cov lej.
- Floating-Point Numbers.
- Cov zauv.
- Cov hlua. Escape Sequences nyob rau hauv Strings. Raw Strings. Triple-quoted Strings.
- Hom Boolean, Boolean Ntsiab Lus, thiab "Qhov tseeb"
- Built-In muaj nuj nqi. lej. Hom Hloov. Iterables thiab Iterators. Cov ntaub ntawv sib xyaw. Chav Kawm, Tus Cwj Pwm, thiab Keeb Kwm. Input/Output.
- Xaus.
Tsis tas li ntawd, cov npe puas tuaj yeem muaj cov ntaub ntawv sib txawv Python? Tsis muaj teeb meem, koj ua tau khaws ib qho hom hauv a lis tsis zoo li hauv "hnub qub" thaum lwm yam lus muaj arrays uas tsuas xav tau ib qho hom ntawm cov ntaub ntawv khaws cia rau hauv lawv.
Kuj Paub, Dab tsi yog 4 hom ntaub ntawv hauv Python?
Python txhawb nqa 4 hom ntaub ntawv tus lej
- int (kos npe tus lej zoo li 10, 2, 29, thiab lwm yam)
- ntev (cov lej ntev siv rau ntau qhov ntau dua ntawm qhov tseem ceeb xws li 908090800L, -0x1929292L, thiab lwm yam)
- ntab (float yog siv los khaws cov naj npawb ntab ntab xws li 1.9, 9.902, 15.2, thiab lwm yam)
- complex (xws li 2.14j, 2.0 + 2.3j, thiab lwm yam)
Puas yog teem ib hom ntaub ntawv hauv Python?
Teeb . Hauv Python , Teeb yog ib phau ntawv uas tsis tau txiav txim hom ntaub ntawv uas yog iterable, mutable thiab tsis muaj duplicate ntsiab.
Pom zoo:
Puas yog tsis muaj hom ntaub ntawv hauv Python?
Hauv Python, Tsis muaj lo lus tseem ceeb yog ib qho khoom, thiab nws yog hom ntaub ntawv ntawm chav kawm NoneType. Peb tuaj yeem muabNone rau txhua qhov sib txawv, tab sis koj tsis tuaj yeem tsim lwm yamNoneType khoom
Dab tsi yog lub hom phiaj ntawm delimiters nyob rau hauv cov ntawv sau npe ob hom ntawv cov ntaub ntawv delimiters?
Cov ntaub ntawv delimited yog cov ntawv nyeem siv los khaws cov ntaub ntawv, uas txhua kab sawv cev rau ib phau ntawv, tuam txhab, lossis lwm yam, thiab txhua kab muaj cov teb sib cais los ntawm tus lej
Puas yog array yog cov qauv ntaub ntawv lossis hom ntaub ntawv?
Ib qho array yog homogeneous cov ntaub ntawv qauv (cov ntsiab lus muaj tib cov ntaub ntawv hom) uas khaws cov khoom sib txuas ntawm cov khoom sib txuas ua ke - faib rau hauv kev sib txuas ua ke.Txhua yam khoom ntawm cov array tuaj yeem nkag tau los ntawm kev siv nws tus lej (piv txwv li, index). Thaum koj tshaj tawm ib qho array, koj teem nws qhov loj me
Vim li cas kem taw qhia cov ntaub ntawv khaws cia ua cov ntaub ntawv nkag ntawm disks sai dua li kab qhia cov ntaub ntawv khaws cia?
Kem oriented databases (aka columnar databases) yog qhov tsim nyog rau kev ntsuas kev ua haujlwm ntau dua vim tias cov ntaub ntawv hom ntawv (kem hom) qiv nws tus kheej kom nrawm dua cov lus nug ua - scans, aggregation thiab lwm yam. Ntawm qhov tod tes, kab oriented databases khaws ib kab (thiab tag nrho nws. kab) contiguously
Hom ntaub ntawv twg ntawm Hadoop tso cai rau columnar cov ntaub ntawv cia hom?
Columnar ntaub ntawv tawm tswv yim (Parquet, RFile) Qhov tseeb hotness nyob rau hauv cov ntaub ntawv tawm tswv yim rau Hadoop iscolumnar cov ntaub ntawv cia. Yeej qhov no txhais tau hais tias tsis yog cia li khaws cov kab ntawm cov ntaub ntawv nyob ib sab rau ib leeg koj kuj khaws cov kab ntawv nyob ib sab. Yog li datasets tau muab faib ua ob qho tib si horizontally thiab vertically