摘要:
字符串的格式化 %s:可以接收任何类型的传值(%d只可以接收整型int) 单个值 "my age is %s" %"18.56" 按照值对应 res = "my name is %s,my age is %s" %("xj",18) 按照字典传值 res = "my name is %(name)s 阅读全文
摘要:
Pandas类 用pandas导出豆瓣评论 import requests import pandas as pd from bs4 import BeautifulSoup link = 'https://movie.douban.com/subject/36208094/comments' he 阅读全文