摘要:From http://www.runoob.com/python3/python3-class.html 1. 很多类都倾向于将对象创建为有初始状态的。因此类可能会定义一个名为 __init__() 的特殊方法(构造方法) 2. 类定义了 __init__() 方法的话,类的实例化操作会自动调用
阅读全文
摘要:From http://blog.csdn.net/oxiaoxio/article/details/50445539 想要快速的学会一个Python的模块和方法,两个函数必须要知道,那就是dir()和help() dir():能够快速的以集合的型式列出该模块下的所有内容(类、常量、方法)例: 结果
阅读全文
摘要:From http://blog.csdn.net/brazy/article/details/77509902 (mostly) http://www.jb51.net/article/74005.htm (one point) other ref: https://help.ubuntu.com
阅读全文
摘要:From https://www.cnblogs.com/Lival/p/6203111.html 1. 我们把可能发生错误的语句放在try模块里,用except来处理异常。except可以处理一个专门的异常,也可以处理一组圆括号中的异常,如果except后没有指定异常,则默认处理所有的异常。每一个
阅读全文
摘要:Mainly refer to below link https://www.west.cn/faq/list.asp?unid=629 Step: 1. chmod 644 grub.cfg 2.set timeout=-1 改为 0 3. sudo update-grub Other refer
阅读全文
摘要:Refer to WIki: https://wiki.xxxxx.com/engit/index.php/VNC_EE_5.1.1/Windows VNC exec file : file://mis1/hqdt_apps/vnc/5.1.1/Windows/Viewer/ 1. Should u
阅读全文
摘要:Help on class AutoAddPolicy in module paramiko.client: class AutoAddPolicy(MissingHostKeyPolicy) | Policy for automatically adding the hostname and ne
阅读全文
摘要:sudo add-apt-repository universe sudo add-apt-repository multiverse sudo apt-get update sudo apt-get install python-pip pip install pexpect # use dir(
阅读全文