抓取结果:Year: 15FallDegree: MSOffer/Rej: RejMajor: CSUniversity: RutgersT:GRE:GPA: ()Detailed Major:BackGround: 本科其他Abroad_BackGround:源代码如下:# -*- coding:...
分类:
编程语言 时间:
2015-05-07 16:32:27
阅读次数:
124
由于工作中经常需要收发电子邮件,例如每日(周)的工作报告,测试报告,监控告警,定时提醒等等,大都已电子邮件的形式发送。本文将实现一个 Python 的电子邮件发送类,支持发送多个附件(目录),HTML或纯文本内容,抄送收件人,多个接收者等功能。
代码实现
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright (C) 2...
分类:
编程语言 时间:
2015-05-07 10:36:38
阅读次数:
338
Problem:
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
Have you thought about this?
Here are some good questions to ask before coding. Bonus ...
分类:
编程语言 时间:
2015-05-07 10:31:44
阅读次数:
165
1:文件形式的邮件01.#!/usr/bin/env python3 02.#coding: utf-8 03.import smtplib 04.from email.mime.text import MIMEText 05.from email.header import Hea...
分类:
编程语言 时间:
2015-05-07 10:06:56
阅读次数:
153
#!/usr/bin/evnpython
#-*-coding:utf-8-*-
#Author=‘Jun‘
"""
可以同时监控多个进程
"""
importsys
importre
importos
importlinecache
try:
importpsutil
exceptImportErrorase:
printe
sys.exit()
defprocess(processname):
plist=[]
getplist=psutil.process_iter()
..
分类:
系统相关 时间:
2015-05-07 01:06:38
阅读次数:
218
1.省略div,插件会默认元素为div.container含糊标签名称,比如不需要指定li,Emmet会自动帮助你生成ul>.lis2.链式缩写① > :添加创建子元素div>span② + :添加创建同层级元素div+span③ ^ :添加一个父层级元素(需要的话你可以向上多层)p>a^p3.分组...
分类:
其他好文 时间:
2015-05-07 00:44:41
阅读次数:
111
应用Webdriver,实现自动化 1 #coding:gbk 2 from selenium import webdriver 3 import os 4 5 from selenium.webdriver.support.ui import Select 6 base_url ="https:....
分类:
编程语言 时间:
2015-05-06 19:30:07
阅读次数:
176
缺点:单线程用途:在内网如有本地的dns可获取域名内网真实ip#-*-coding=utf-8-*-
#date:2015年5月6日
#author:sanr
importsocket
defip(name):
try:
result=socket.getaddrinfo(name,None)
returnresult[0][4][0]
except:
return0
if__name__==‘__main__‘:
f=open(‘..
分类:
其他好文 时间:
2015-05-06 18:12:41
阅读次数:
215
#coding:utf-8import redef strip_tags(string, allowed_tags=''): if allowed_tags != '': # Get a list of all allowed tag names. allowed_tags = all...
分类:
编程语言 时间:
2015-05-06 17:03:44
阅读次数:
143
第 0007 题:有个目录,里面是你自己写过的程序,统计一下你写过多少行代码。包括空行和注释,但是要分别列出来。思路:获取目录,然后遍历目录下的代码文件,逐个统计每个文件的代码,然后最后汇总输出。0007.统计代码.py#!/usr/bin/env python
#coding: utf-8
import os, re# 代码所在目录
FILE_PATH = '/home/bill/Desktop/...
分类:
编程语言 时间:
2015-05-06 15:12:26
阅读次数:
205