beautypg.com

7 numeric types: float, 8 numeric types: complex, 9 sequence types: strings – Rainbow Electronics GM862-GPS User Manual

Page 83

background image





Easy Script

in Python

80000ST10020a Rev.8 - 01/10/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 83 of 100

4.2.7 Numeric Types: Float


Floating point numbers are not supported.

4.2.8 Numeric Types: Complex


Complex numbers are not supported.

4.2.9 Sequence Types: Strings


The following operations are supported with the string type:














The only difference between Python version 1.5.2+ and 1.5.2 is that strings are objects that support
the following methods:

x in s

x not in s

s + t

s * n, n * s

s[i]

s[i:j]

len(s)

min(s)

max(s)

s.capitalize()
s.count(sub[, start[, end]])
s.endswith(suffix[, start[, end]])
s.find(sub[, start[, end]])
s.index(sub[, start[, end ]])
s.join(seq)
s.lstrip()
s.lower()
s.replace(old, new[, maxsplit])
s.rfind(sub[, start[, end]])
s.rindex(sub[, start[, end]])
s.rstrip()
s.split([sep [,maxsplit]])
s.startswith(prefix[, start[, end]])