美文网首页
python 文章合集

python 文章合集

作者: W_I_S_E | 来源:发表于2017-05-03 12:01 被阅读0次

    1.format function(作分隔符以及左右对齐,进制标识说明) format函数格式化字符串的用法

    2.heap memory | stack memory What is the difference between the stack and the heap?

    3.yield from python3中的yield from语句 and In practice, what are the main uses for the new “yield from” syntax in Python 3.3?

    4.the difference between while 1 and while True in python while (1) Vs. for while(True) — Why is there a difference?

    5.Python bare asterisk in function argument

    Parameters after “” or “identifier” are keyword-only parameters and may only be passed used keyword arguments.

    6.The difference between type() and isinstance()

    7.virtualenv Env not creating bin directory in Windows 7

    8.[Python tuple and set] (http://blog.csdn.net/u010367506/article/details/32333027)
    list —— 有序可变序列
    tuple —— 有序不可变序列
    set —— 可以看成数学意义上的无序和无重复元素的集合
    add(), remove()。 Set 中的单个元素不能为可变元素,因为Set会对元素的内容哈希化操作。

    a = {}
    print(type(a))
    
    a = {1,2}
    print(type(a))
    
    1. Extending Python with C or C++

    2. WIKI WSGI

    PEP 333 in Chinese

    11.Difference between dir(…) and vars(…).keys() in Python?

    class C(object):
        def m(self):
            print('print')
    
    x = C()
    print(dir(x),vars(x),sep='\n')
    
    1. MANIFEST.in file
    image.png
    1. Descriptor HowTo Guide
      (一片很好的讲述描述符的文章)

    2. https://www.cnblogs.com/xybaby/p/6270551.html

    15.SMTP发送QQ邮件

    相关文章

      网友评论

          本文标题:python 文章合集

          本文链接:https://www.haomeiwen.com/subject/qcpktxtx.html