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(... 阅读全文

posted @ 2018-03-29 20:53 155林俊彪 阅读(91) 评论(0) 推荐(0)

摘要: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 155林俊彪 阅读(103) 评论(0) 推荐(0)

摘要: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 155林俊彪 阅读(128) 评论(0) 推荐(0)

摘要:一、字符串练习: 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 155林俊彪 阅读(160) 评论(0) 推荐(0)

摘要:# -*- 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 155林俊彪 阅读(74) 评论(0) 推荐(0)

摘要: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 155林俊彪 阅读(125) 评论(0) 推荐(0)

只有注册用户登录后才能阅读该文。

posted @ 2018-03-07 16:05 155林俊彪 阅读(0) 评论(0) 推荐(0)

导航