Welcome to the Python-Notes wiki!
Here are some python programming notes I made when dealing with some interesting situations in programming.
Enjoy!
- Package: smtplib
- References:
- Package: pysftp
- References:
- Python Handling Exception
- Example:
(x,y) = (5,0)
try:
z=x/y
except ZeroDivisionError:
print "divide by zero"
- Package/Tool: crontab
- References:
- Example:
minute(0-59) hour(0-23) day(1-31) month(1-12) weekday(0-6) command
- Package/Tool: md5sum or hashlib.md5()
- References:
- Example:
- md5sum:
md5sum file
- hashlib.md5():
hashlib.md5(open(file,'r').read()).hexdigest()
- Package/Tool: gnupg
- References: