字典和集合字典基础操作创建字典通过{}操作符创建字典通过dict()工厂函数创建字典通过fromkeys()创建具有相同值的默认字典>>>aDict={‘Name‘:‘Bob‘,‘age‘:23}>>>importtab>>>bDict=dict(([‘name‘,‘bob‘],[‘age‘,23]))>>>printbDict{‘age‘:2..
分类:
编程语言 时间:
2016-10-11 00:41:43
阅读次数:
421
Destroying The Graph Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 8158 Accepted: 2620 Special Judge Description Alice and Bob play the f ...
分类:
其他好文 时间:
2016-10-06 14:43:50
阅读次数:
209
2763: [JLOI2011]飞行路线 Description Alice和Bob现在要乘飞机旅行,他们选择了一家相对便宜的航空公司。该航空公司一共在n个城市设有业务,设这些城市分别标记为0到n-1,一共有m种航线,每种航线连接两个城市,并且航线有一定的价格。Alice和Bob现在要从一个城市沿着 ...
分类:
编程语言 时间:
2016-10-02 12:59:37
阅读次数:
272
Alice and Bob Font: Times New Roman | Verdana | Georgia Font Size: ← → Problem Description Alice and Bob's game never ends. Today, they introduce a ne ...
分类:
其他好文 时间:
2016-09-30 21:04:06
阅读次数:
143
2.6节R21.在BitTorrent中,假定Alice向Bob提供一个30秒间隔的文件块吞吐量。Bob将必须进行回报,在相同的间隔中向Alice提供文件块吗?为什么?ItisnotnecessarythatBobwillalsoprovidechunkstoAlice.Alicehastobeinthetop4neighborsofBobforBobtosendoutchunkstoher;thismightn..
分类:
其他好文 时间:
2016-09-29 11:36:51
阅读次数:
529
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT']; $fp = fopen("$DOCUMENT_ROOT/../orders/orders.txt",'w'); $DOCUMENT_ROOT 是脚本所在文件根目录 就是www文件夹 ".."是表示根目录的父目录 ...
分类:
其他好文 时间:
2016-09-27 00:35:23
阅读次数:
146
2763: [JLOI2011]飞行路线 Description Alice和Bob现在要乘飞机旅行,他们选择了一家相对便宜的航空公司。该航空公司一共在n个城市设有业务,设这些城市分别标记为0到n-1,一共有m种航线,每种航线连接两个城市,并且航线有一定的价格。Alice和Bob现在要从一个城市沿着 ...
分类:
其他好文 时间:
2016-09-26 23:09:10
阅读次数:
198
HDU 5724 Chess(国际象棋) Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Description 题目描述 Alice and Bob are playing a spe ...
分类:
其他好文 时间:
2016-09-25 15:58:59
阅读次数:
174
defsendmail():
importsmtplib
fromemail.mime.textimportMIMEText
fromemail.utilsimportformataddr
msg=MIMEText(‘邮件内容‘,‘plain‘,‘utf-8‘)
msg[‘From‘]=formataddr([‘bob‘,‘liangml0418@163.com‘])
msg[‘To‘]=formataddr(["走人",‘1729562020@qq.com‘])
msg[‘Subject‘]=..
分类:
其他好文 时间:
2016-09-23 22:00:23
阅读次数:
112