Python for Everybody-Using Python to Access Web DatExtracting Data With Regular Expressions
来源:互联网 发布:程序员入门教程 编辑:程序博客网 时间:2024/05/16 10:41
Coursera-Python for Everybody-Using Python to Access Web Data-DatExtracting Data With Regular Expressions
#!/usr/bin/env python3# -*- coding: utf-8 -*-__author__ = 'Jhy_Bistu'import re# hand=open('regex_sum_42.txt')hand=open('11.txt')numlist=list()for line in hand: line=line.rstrip() stuff=re.findall('[0-9]+',line) if len(stuff) <1: continue #num=map(map,[float]*len(numlist),numlist) num = map(float, stuff) #numlist.append(num) numlist=numlist+numprint (numlist)print len(numlist)print sum(numlist)
0 0
- Python for Everybody-Using Python to Access Web DatExtracting Data With Regular Expressions
- Coursera Using python to access Web data
- 2016.12.8 Using Python to Access Web Data
- Coursera Using python to access Web data quiz 3
- Coursera Using python to access Web data quiz 4
- Coursera Using python to access Web data quiz 5
- Regular Expressions in Python with re module
- Cousera-Using python to access web data(第2~4周笔记)
- Coursera课程Python for everyone:Quiz: Regular Expressions
- Python Regular Expressions 正则表达式
- 2016.9.13 Programming for Everybody (Getting Started with Python)
- Python-regular expressions exercises (Core Python)
- Regular Expression Pocket Reference: Regular Expressions for Perl, Ruby, PHP, Python, C, Java and .N
- Using Regular Expressions
- Python核心编程学习-Regular Expressions
- Using Python to show the test data
- Validate With Regular Expressions
- using Regular Expressions to Look References in Source Insight
- 根据HttpSevletRequest 获取url 所有参数
- android 提高进程优先级 拍照永不崩溃(闪退)
- 编译原理——实验 1.1用 FLEX自动构造词法分析程序
- 身份证上的号码代表的意思大揭秘
- gdb调试程序
- Python for Everybody-Using Python to Access Web DatExtracting Data With Regular Expressions
- Java定位CPU使用高问题
- Vim快捷键简介
- Linux环境下段错误的产生原因及调试方法小结
- 异常抛出类
- 欢迎使用CSDN-markdown编辑器
- iOS 代理传值
- Swifit指纹识别小Demo
- js中使用EL表达式