![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 81
Qton
这个作者很懒,什么都没留下…
展开
-
python 笔记(廖雪峰教程)
python print(True and False) print(True or False) print(not False) def flexble(*num): sum=0 for i in num: sum=sum+i*i return sum print(flexble(1,2,3,4,5)) for i,v in enumerate(range(10)): p原创 2017-04-17 13:13:38 · 1803 阅读 · 0 评论 -
韶大talk 评论热度抽取
代码: import re , urllib.parse , urllib.request , http.cookiejar , base64 , binascii , rsa,time cj = http.cookiejar.LWPCookieJar() cookie_support = urllib.request.HTTPCookieProcessor(cj) opener = url原创 2017-05-07 21:44:08 · 1963 阅读 · 1 评论 -
python 数据读写 IO
1 TXT读写 # 写入 txt_0=open('packages/txt_0.txt','w') # w 只写 r 只读 txt_0.write('写入数据到TXT') txt_0.close() # 读取 txt_1=open('packages/txt_0.txt','r') print(txt_1.read()) group = pd.read_table('bayes.txt原创 2017-05-04 12:33:40 · 775 阅读 · 0 评论 -
python SMTP发送邮件
代码: from smtplib import SMTP from email.mime.text import MIMEText from email.header import Header def send_email(SMTP_host, from_account, from_passwd, to_account, subject, content): email_client原创 2017-05-04 21:38:51 · 724 阅读 · 0 评论 -
模拟登陆新浪微博
代码: import re , urllib.parse , urllib.request , http.cookiejar , base64 , binascii , rsa,time cj = http.cookiejar.LWPCookieJar() cookie_support = urllib.request.HTTPCookieProcessor(cj) opener = url原创 2017-05-07 20:31:25 · 700 阅读 · 0 评论 -
pandas IO numpy 矩阵
import time import numpy as np import pandas as pd import matplotlib.pyplot as plt print('\n\n--------列表 list []------') # 生成 list_0=list(range(10)) list_1=[6,9,3,5,7] list_2=[x*x for x in range(1原创 2017-08-24 14:06:18 · 812 阅读 · 0 评论 -
ubuntu18 下配置sublime text3 (python编码环境)
1 下载sublimetext3 (不要下载最新版Version:Build 3207 不好找licence) https://www.unyoo.com/2320.html(参考这个,需要指定版本windows或mac的可以看这个) https://download.sublimetext.com/sublime_text_3_build_3200_x64.tar.bz2 (我用的是这个版...原创 2019-07-12 08:48:52 · 446 阅读 · 0 评论