posted @ 2018-03-29 20:53
03 2018 档案
摘要:import requests from bs4 import BeautifulSoup res = requests.get('https://www.cnblogs.com/') res.encoding = 'UTF-8' soup = BeautifulSoup(res.text, 'html.parser') # 取出h1标签的文本 for h1 in soup.find_all(...
阅读全文
摘要:import jieba file=open('pingfan','r',encoding = 'utf-8') wordList=list(jieba.cut(file.read())) wordDict={} for word in wordList: if(len(word)==1): continue wordDict[word]= wordList....
阅读全文
posted @ 2018-03-28 21:55
摘要:song = ''' Can't believe its over That you're leaving Weren't we meant to be? Should've sensed the danger Read the warnings Right there in front of me Just stop Lets start it over Couldn't I get one ...
阅读全文
posted @ 2018-03-26 20:41
摘要:一、字符串练习: 1.http://news.gzcc.cn/html/2017/xiaoyuanxinwen_1027/8443.html 取得校园新闻的编号 2.https://docs.python.org/3/library/turtle.html 产生python文档的网址 3.http:
阅读全文
posted @ 2018-03-21 17:51
摘要:# -*- coding:utf-8 -*- from turtle import * def mygoto(x,y): up() goto(x,y) down() def drawStar(r): begin_fill() for i in range(5): forward(r) right(144) end_f...
阅读全文
posted @ 2018-03-15 21:30
摘要:cd命令:切换目录 (1)切换到目录 /usr/local cd/usr/local (2)去到目前的上层目录 cd .. (3)回到自己的主文件夹 cd ~ ls命令:查看文件与目录 (4)查看目录/usr下所有的文件 #Is /usr mkdir命令:新建新目录 (5)进入/tmp目录,创建一个
阅读全文
posted @ 2018-03-14 17:00
浙公网安备 33010602011771号