1、导入fake-useragent库 from fake_useragent import UserAgent. 2、实例化一个对象 ua = UserAgent(). 3、随机生成IE浏览器的UserAgent. >> ua.ie
確定! 回上一頁