• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            Welcome to 陳俊峰's ---BeetleHeaded Man Blog !

              C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
              58 隨筆 :: 32 文章 :: 18 評論 :: 0 Trackbacks
            Python讀書筆記( 2006-4-12 ):

            Note One???: about integer and long integer
            There are four types of numeric literals: plain integers, long integers, floating point numbers, and imaginary numbers. There are no complex literals (complex numbers can be formed by adding a real number and an imaginary number).
            Note that numeric literals do not include a sign; a phrase like -1 is actually an expression composed of the unary operator `-' and the literal 1

            Note Two???: about operators
            The comparison operators <> and != are alternate spellings of the same operator. != is the preferred spelling; <> is obsolescent.

            Note Three: about delimiters
            The following printing ASCII characters are not used in Python. Their occurrence outside string literals and comments is an unconditional error:? ?$?????? ?

            Note Four? : about Sequences
            Sequences also support slicing: a[i:j] selects all items with index k such that? i <= k < j ?When used as an expression, a slice is a sequence of the same type. This implies that the index set is renumbered so that it starts at 0. Some sequences also support ``extended slicing'' with a third ``step'' parameter:?a[i:j:k] selects all items of a with index x where? x = i +n*k?, n >= 0??and i <= x < j.


            Note Five???: about Primary Prompt
            In interactive mode, the last printed expression is assigned to the variable _. This means that when you are using Python as a desk calculator, it is somewhat easier to continue calculations, for example:

            >>> tax = 12.5 / 100
            >>> price = 100.50
            >>> price * tax
            12.5625
            >>> price + _
            113.0625
            >>> round(_, 2)
            113.06
            >>>

            This variable should be treated as read-only by the user. Don't explicitly assign a value to it -- you would create an independent local variable with the same name masking the built-in variable with its magic behavior.
            posted on 2006-04-12 19:00 Jeff-Chen 閱讀(180) 評論(0)  編輯 收藏 引用 所屬分類: Python
            久久伊人亚洲AV无码网站| 亚洲精品国产自在久久| 久久久久久人妻无码| 欧美午夜精品久久久久免费视| 99久久无码一区人妻a黑| 99精品久久久久久久婷婷| 精品多毛少妇人妻AV免费久久| 精品免费久久久久国产一区| 久久大香萑太香蕉av| 韩国免费A级毛片久久| 久久涩综合| 久久综合久久综合久久综合| 午夜精品久久久久成人| 国产精品久久久亚洲| 亚洲性久久久影院| 久久免费精品视频| 亚洲熟妇无码另类久久久| 99久久国产主播综合精品| 久久精品国产2020| 久久九色综合九色99伊人| 精品综合久久久久久888蜜芽| 青青久久精品国产免费看| 99国产精品久久| 午夜天堂精品久久久久| 一本大道久久香蕉成人网| 成人精品一区二区久久久| 久久久久久久久久久久中文字幕| 热综合一本伊人久久精品| 国内精品久久久久国产盗摄| 97久久精品午夜一区二区| 久久99热只有频精品8| 久久精品国产亚洲AV久| 偷窥少妇久久久久久久久| 久久婷婷五月综合成人D啪| 狠狠人妻久久久久久综合| 91精品国产色综久久| 久久综合九色综合久99 | 亚洲中文字幕无码久久2020| 久久久久亚洲AV无码专区网站| 狠狠色丁香久久婷婷综| 四虎国产精品免费久久久|