摘要:
s1 = 'Hello' s2 = 'Python' f'{s1} {s2}'#fast,f-string s1 + ' ' + s2 ' '.join(s1, s2) '%s %s' % (s1, s2) '{} {}'.format(s1, s2) Template('$s1 $s2').sub 阅读全文
摘要:
class GithubSpider(scrapy.Spider): name = 'github' allowed_domains = ['github.com'] start_urls = ['https://github.com/login'] def parse(self, response 阅读全文