This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # -*- coding: UTF-8 -*- | |
| import smtplib | |
| from email.mime.text import MIMEText | |
| from email.header import Header | |
| from email.mime.multipart import MIMEMultipart | |
| import mimetypes | |
| import sys,os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for i in `ls | grep pvm` #要重命名的文件 | |
| do mv $i `echo $i | sed 's/.pvm//'` #去除.pvm字段 | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from timeit import Timer | |
| _URL = 'https://baidu.com' | |
| _NUMBER = 10 | |
| def test_urllib(): | |
| import urllib.request | |
| import urllib.error | |
| try: | |
| response = urllib.request.urlopen(_URL) |
OlderNewer