Professional IronPython


encode([object encoding[, str errors]])



Download 20,35 Mb.
Pdf ko'rish
bet100/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   96   97   98   99   100   101   102   103   ...   453
encode([object encoding[, str errors]])
: Encodes a string to another format. You 
have the same options as when decoding a string (see the 
decode()
entry in this list). For 
example, you might want to encode a string using uuencode. To perform this task, you’d 
type 
EncodeString = MyString.encode(‘uu_codec‘)
. After the call, 
EncodeString
would contain the uuencoded string.


endswith(object suffix[, int start[, int end]])
: Determines whether the string 
ends with a particular letter or substring
suffix
. You may optionally provide a starting 
point, 
start
, and ending point, 
end
, in the string. When using an end value
endswith()
checks the designated endpoint, rather than the actual end of the string. For example, if you 
want to determine whether there’s a l at position 4 (an end point of 3 since the string count 
begins with 0), you’d type 
MyString.endswith(‘l‘, 0, 3)
.


expandtabs([int tabsize])
: Expands the tabs within a string using spaces. You may option-
ally provide the number of spaces to use for each tab using 
tabsize
. For example, if you want 
to expand the tabs in a string to four spaces, you’d type 
MyString.expandtabs(4)
.


find(str sub[, int start[, int end]])
 or 
find(str sub, object start, object 
end)
: Locates the substring, 
sub
, within the string and outputs an integer value defining the 
first occurrence of the substring. You can optionally add a starting, 
start
, and ending, 
end

value to change the location that the method searches within the string (the default is to search 
the entire string). In this case, the starting and ending value need not be an integer value, but 
can be an object that defines the starting and ending point instead. For example, if you want 
548592c05.indd 80
2/24/10 1:21:46 PM
www.finebook.ir



Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   96   97   98   99   100   101   102   103   ...   453




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