按类别查询搜索结果
关于关键词 的检测结果,共 3
【Python/Ruby】 b4解析
fbwd | 2023-01-22 09:48:52 | 阅读(0) | 评论(0)
#导入#导入BeautifulSoup这样一个类. 然后打开豆瓣.html文件. lxml. 这样就创建了数字对象.from bs4 import BeautifulSoup#实例化soup对象.soup = BeautifulSoup(open('.\豆瓣.html', 'r', encoding='UTF-8'), 'lxml')#print(soup)#print(type(soup))#获取标签,往下看#print(soup.p)#获取标签#print(soup.a)#获取...【阅读全文】
wq4113 | 2014-10-31 11:54:29 | 阅读(1010) | 评论(0)
# -*- coding: UTF-8 -*-'''【程序87】题目:回答结果(结构体变量传递)1.程序分析:     2.程序源代码:'''if __name__ == '__main__':    class student:        x = 0        c = 0    def f(stu):        stu.x = ...【阅读全文】
【Python/Ruby】 Python 2.7 a1发布
wyg1258 | 2009-12-06 20:04:29 | 阅读(274) | 评论(0)