跳到主要內容

發表文章

目前顯示的是 10月, 2014的文章

Python Study (2) - Concept

  Study travel beginning    Execute your first code Hollow World     >>> print("Hollow World")      Hollow World Python's core Data Type        We understand  data type before studying any program. Python has built-in object types Data Type(Object type) Example Numbers int, float, long, complex Strings   Lists   Dictionaries   Tuples   Files   Sets set, frozenset Primitive types boolean, Program unit types Functions, modules, classes Implementation-related types compiled code, stack tracebacks 1. Number     Example: real number, float, double ... >>> 333 + 555     888 >>> 333 / 111    3.0 >>> 333 * 9    2997 >>> "happy " * 2 + " birthday"    'happy happy  birthday' Module : math and random >>> import math >>> math....

Python Study (1) - Introduce Python

  Why do I study Python              Each program has advantage itself, why I study python program? This book(*1)       give us several  advantages :       1   Software quality : Python script is designed to be readable , reusable and            maintainable.       2   Developer productivity : We don't need to complie program.       3.  Program portability :  It is portable and  run on any operating  system       4.  Module :  many module is written in python       5.  Easy : Easy to learn, easy to read, easy to maintain User        Many companys adopt Python language to develop its products. such as :google,       yout...