Python Programming for Biology: Bioinformatics and Beyond



Download 7,75 Mb.
Pdf ko'rish
bet461/514
Sana30.12.2021
Hajmi7,75 Mb.
#91066
1   ...   457   458   459   460   461   462   463   464   ...   514
Bog'liq
[Tim J. Stevens, Wayne Boucher] Python Programming

Attribute

Description

f.closed


Determines whether the file object is closed for reading/writing.

f.mode


Fetches the read/write/append mode that the file object was created

with.


f.name

Gives the name of the file, as represented on disk.



1

Compared to Python 2, in Python 3 all strings are Unicode and the type bytes is used for

immutable binary data, rather than strings.

2

Or to Unicode before Python 3 with unicode(x).



3

Note that the u” syntax was removed in Python 3.0 to 3.2, but reintroduced in 3.3.




Appendix 3

Standard module highlights

The ‘

string

’ module

The table below lists attributes which can be imported from the string module. It should be

noted that many things that were previously handled using the string module in very old

versions of Python are now generally built into the string class, e.g. a = b.upper(), so we

only list a few of the more useful string constants below.


Download 7,75 Mb.

Do'stlaringiz bilan baham:
1   ...   457   458   459   460   461   462   463   464   ...   514




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish