12 2017 档案

About self and class
摘要:From http://www.runoob.com/python3/python3-class.html 1. 很多类都倾向于将对象创建为有初始状态的。因此类可能会定义一个名为 __init__() 的特殊方法(构造方法) 2. 类定义了 __init__() 方法的话,类的实例化操作会自动调用 阅读全文

posted @ 2017-12-28 17:21 cdekelon 阅读(162) 评论(0) 推荐(0) 编辑

How to quickly learn 一个Python的模块、方法、关键字
摘要:From http://blog.csdn.net/oxiaoxio/article/details/50445539 想要快速的学会一个Python的模块和方法,两个函数必须要知道,那就是dir()和help() dir():能够快速的以集合的型式列出该模块下的所有内容(类、常量、方法)例: 结果 阅读全文

posted @ 2017-12-28 16:49 cdekelon 阅读(264) 评论(0) 推荐(0) 编辑

How to 安装apache和配置自定义目录, run CGI or py
摘要: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 阅读全文

posted @ 2017-12-28 10:57 cdekelon 阅读(188) 评论(0) 推荐(0) 编辑

About try...expect...else
摘要:From https://www.cnblogs.com/Lival/p/6203111.html 1. 我们把可能发生错误的语句放在try模块里,用except来处理异常。except可以处理一个专门的异常,也可以处理一组圆括号中的异常,如果except后没有指定异常,则默认处理所有的异常。每一个 阅读全文

posted @ 2017-12-27 16:34 cdekelon 阅读(297) 评论(0) 推荐(0) 编辑

How to boot to ubuntu14.04 LTS without any halt at GRUB
摘要: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 阅读全文

posted @ 2017-12-26 16:40 cdekelon 阅读(120) 评论(0) 推荐(0) 编辑

How to remote control ubuntu 14.04 via Windows10
摘要: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 阅读全文

posted @ 2017-12-26 15:13 cdekelon 阅读(229) 评论(0) 推荐(0) 编辑

How to determine your ssh-client's IP when you only konw its usrname and passwd
摘要:Help on class AutoAddPolicy in module paramiko.client: class AutoAddPolicy(MissingHostKeyPolicy) | Policy for automatically adding the hostname and ne 阅读全文

posted @ 2017-12-25 14:57 cdekelon 阅读(199) 评论(0) 推荐(0) 编辑

How to install paramiko/pexpect
摘要: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( 阅读全文

posted @ 2017-12-25 14:34 cdekelon 阅读(108) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示