"Hello World" in MarkDown


This is how you use quotations.

"Life is short. Use Python."

List of things I have been working on

  • C++
  • Python
  • HTML+CSS+JavaScript

This is how you use latex

![](http://www.forkosh.com/mathtex.cgi? \int_{\partial D}W= \int_D dW)

This is how you write your code:

import requests
import smtplib
from bs4 import BeautifulSoup
import urllib
msg = 'Hi, this is Jerry.'+'\n'+'\n'
for i in range(1,8):
    url="http://www.ebay.com/sch/i.html?_from=R40&_sacat=0&_nkw=iphone6s&_pgn="+str(i)+"&_skc="+str((i-1)*50)+"&rt=nc"
    r = requests.get(url)
    soup = BeautifulSoup(r.content, "html.parser")
    list= soup.findAll("li",{"class":"sresult lvresult clearfix li shic"})
    for item in list:
        info=item.find('img')['alt']
        price=item.find('li',{"class":"lvprice prc"}).find('span').text
        info=info.encode('ascii',errors='ignore')
        price=price.encode('ascii',errors='ignore')
        print info
        print price
        msg=msg+'\n'+info+'\n'+price+'\n'
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • **2014真題Directions:Read the following text. Choose the be...
    又是夜半驚坐起閱讀 11,092評論 0 23
  • 那天風(fēng)微涼,在教室的桌子上他一個(gè)人安靜的躺著,看著陽光下的她是那么的可愛,故事由此展開,那年他十九,她十八,已...
    北辰大大閱讀 213評論 1 0
  • 8月4日,互聯(lián)網(wǎng)女神遠(yuǎn)赴故鄉(xiāng)江西寧都,并于次日回訪寧都縣青年商會,受到商會的盛情款待。 寧都青商會是在共青團(tuán)寧都縣...
    中道文化閱讀 1,358評論 0 0

友情鏈接更多精彩內(nèi)容