首页 软件开发 代码片段 python ( Page 17 )

python 1073

#Python
获取城市天气的Python脚本

原文  http://xianglong.me/article/get-city-weather-using-python-script/ 一段Python实现的获取城市…

2015-10-19 242

#Python
小白求教

d={'A':90,'B':80,'C':70} print d {'A': 90, 'C': 70, 'B': 80} [Finished in 0.0s]

2015-10-18 511

#Python
北京地铁月支出简易计算器

#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division import math …

2015-10-18 869

#Python
分形图

#!/usr/bin/env python3 """ turtle-example-suite: tdemo_bytedesign.py An example adapted fr…

2015-10-17 497

#Python
对异常函数进行重试数次

def retry(times=1,exceptions=None): exceptions = exceptions if exceptions is not None else…

2015-10-17 916

#Python
思科路由器交换机自动化安全配置核查脚本

#coding: utf-8 #!/usr/bin/python ''' 1,用于Cisco设备的配置核查,原理上是在show running-config结果中对关键配置命令进行…

2015-10-16 641

#Python
计算蛋白质分子量大小(MW)、等电点(pI)和消光系数

# -*- coding: UTF-8 -*- AA="ACDEFGHIKLMNPQRSTVWY" AA_residue={'A': 71.0788,'C': 103.1388,'…

2015-10-15 939

#Python
这个Python类用于获取代码执行时间

""" ExecutionTime This class is used for timing execution of code. For exam…

2015-10-14 454

#Python
找出所有链接的python脚本

import requests import re # get url url = input('Enter a URL (include `http://`): ') # con…

2015-10-14 684

#Python
判断输入的是否为回文

def isPalindrome(s): def toChars(s): s = s.lower() ans = '' for c in s: if c in 'abcdefghi…

2015-10-12 944

#Python
python实现数据结构中的栈

#coding:utf-8 #author:Elvis class Stack(object): def __init__(self, size=8): self.stack = …

2015-10-12 1,009
1 15 16 17 18 19 90