• <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 閱讀(185) 評論(0)  編輯 收藏 引用 所屬分類: Python
            99麻豆久久久国产精品免费| 久久久久人妻一区精品色| 久久精品夜色噜噜亚洲A∨| 久久久噜噜噜久久中文字幕色伊伊| 久久精品中文字幕有码| 亚洲乱码中文字幕久久孕妇黑人 | 7国产欧美日韩综合天堂中文久久久久| 一本色道久久综合亚洲精品| 国产精品美女久久久| 国产精品久久久久蜜芽| 久久精品嫩草影院| 97精品国产97久久久久久免费 | 亚洲中文字幕久久精品无码APP | 99精品国产综合久久久久五月天| 国产成人久久精品激情| 色播久久人人爽人人爽人人片aV | 国产精品毛片久久久久久久| 久久强奷乱码老熟女网站| 亚洲国产精品久久66| 日韩精品久久无码人妻中文字幕| 人妻丰满?V无码久久不卡| 国产午夜久久影院| 久久精品麻豆日日躁夜夜躁| 久久精品桃花综合| 亚洲?V乱码久久精品蜜桃 | 久久久久这里只有精品 | 99久久国产综合精品网成人影院| 无码国内精品久久综合88| 久久狠狠一本精品综合网| 99国产精品久久久久久久成人热| 久久精品无码一区二区WWW| 久久久久亚洲爆乳少妇无| 国产91久久综合| 久久亚洲AV无码精品色午夜 | 伊人久久大香线蕉亚洲| 久久国产三级无码一区二区| 久久久久高潮综合影院| 18岁日韩内射颜射午夜久久成人| 亚洲欧美一级久久精品| 亚洲国产精品久久久天堂| 伊人久久综合精品无码AV专区|