python学习
python学习
Po 麻煩
这个作者很懒,什么都没留下…
展开
-
04_python爬虫爬取超星回放
import requests as refrom bs4 import BeautifulSoup import timeclass VideoGet: def __init__(self): #初始化, 地址基本没用, 后面会重新设置 self.url = 'https://www.4kdy.org/TV/OM/juemingdushi1/jue...原创 2020-05-01 22:49:53 · 1296 阅读 · 1 评论 -
03_Python的链式调用
class A: def __init__(self, name): self.name = name def fun1(self, thing): print('i am fun', self.name, thing) return self def fun2(self, thing):...原创 2020-03-31 22:35:45 · 104 阅读 · 0 评论 -
02_Python的pyecharts的使用
import pyecharts.options as optsfrom pyecharts.charts import Line"""Gallery 使用 pyecharts 1.1.0参考地址: https://www.echartsjs.com/examples/editor.html?c=line-marker目前无法实现的功能:1、最低气温的最高值暂时无法和 Echar...原创 2020-03-31 21:43:09 · 148 阅读 · 0 评论 -
01_Python元组、函数、lambda、字典、集合
a = (1, 2, 3, 4, 5)#元组创建a = a[:5] + (8,) + a[5:]#元组更改8*(8)8*(8,)#字符串的使用a = 'hello python'a = a + ' {a}'a.format(a = 'yes')a = a + ' {b:.1f}'b = list('asdfg')#列表创建b = tuple('asdfag')#元组创建...原创 2020-03-25 18:43:31 · 174 阅读 · 0 评论 -
00_Python基本语句、列表操作
if 5>3: print('111')elif 5>3: print('222')else: print('333')for i in range(1, 10): print(i)while True: print('aaaa') a = [1, 2, 3, [4, 5, 6]]a[3][1]a.append('asd') #加入到最后...原创 2020-03-24 23:56:40 · 50 阅读 · 0 评论