文章分类 -  python【3】

该文被密码保护。
posted @ 2018-07-15 21:51 Justice-V 阅读(0) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-07-15 21:41 Justice-V 阅读(541) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-07-15 20:16 Justice-V 阅读(2) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-07-14 23:23 Justice-V 阅读(1) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-07-13 22:51 Justice-V 阅读(1) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-07-13 17:27 Justice-V 阅读(1) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-07-13 17:07 Justice-V 阅读(0) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-07-08 22:09 Justice-V 阅读(78) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-07-08 21:47 Justice-V 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-07-07 21:53 Justice-V 阅读(1) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-07-07 21:49 Justice-V 阅读(53) 评论(0) 推荐(0)
摘要:1 import requests 2 3 import re 4 5 def getHtml(url): 6 headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like 阅读全文
posted @ 2018-06-25 17:03 Justice-V 阅读(92) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2018-03-31 22:26 Justice-V 阅读(1) 评论(0) 推荐(0)
摘要:1 class rect: 2 def __init__(self,width=1,height=1): 3 self._width = width 4 self._height = height 5 6 def setWidth(self,width): 7 self._width = width 阅读全文
posted @ 2018-03-30 16:25 Justice-V 阅读(167) 评论(0) 推荐(0)
摘要:1 from flask import Flask 2 3 app = Flask(__name__) 4 5 @app.route('/') 6 7 def hello_world(): 8 return "Hello World" 9 10 11 if __name__ == "__main__ 阅读全文
posted @ 2018-03-29 22:13 Justice-V 阅读(119) 评论(0) 推荐(0)
摘要:1)turtle.pensize():设置线条的粗细; 2)turtle.speed():设置绘制的速度,1-10,1最慢,10最快; 3)turtle.begin_fill():准备开始填充图形; 4)turtle.circle(50,steps=3):circle函数在之前用到过,是画一个半径为 阅读全文
posted @ 2018-03-28 13:08 Justice-V 阅读(633) 评论(0) 推荐(0)
摘要:1 import turtle 2 3 heights = [856,420,360,260,205] 4 5 def main(): 6 t = turtle.Turtle() 7 t.hideturtle() 8 for i in range(5): 9 drawFilledRectangle( 阅读全文
posted @ 2018-03-28 13:03 Justice-V 阅读(265) 评论(0) 推荐(0)
摘要:1 import turtle 2 yValues = [10.0,7.4,6.4,5.3,10.4,3.7,2.6] 3 def main(): 4 t = turtle.Turtle() 5 t.hideturtle() 6 drawLine(t,0,0,300,0) #画x轴 7 drawLine(t,0,0,0,175) #画y轴 8 ... 阅读全文
posted @ 2018-03-27 19:27 Justice-V 阅读(204) 评论(0) 推荐(0)
摘要:sorted函数 sort方法改变了列表中所有元素的顺序,sorted函数则返回一个新的已经排序的列表.尤其,在下面的语句: list2 = sorted(list1) 执行后,list2会包含和list1一样的元素,但是已经排序好的 sort方法和sorted函数都可以使用参数key和revers 阅读全文
posted @ 2018-03-27 10:59 Justice-V 阅读(79) 评论(0) 推荐(0)
摘要:sorted函数 sort方法改变了列表中所有元素的顺序,sorted函数则返回一个新的已经排序的列表.尤其,在下面的语句: list2 = sorted(list1) 执行后,list2会包含和list1一样的元素,但是已经排序好的 sort方法和sorted函数都可以使用参数key和revers 阅读全文
posted @ 2018-03-27 10:59 Justice-V 阅读(104) 评论(0) 推荐(0)