TypeError: 'unicode' object is not callable 错误 python2.7

刚学python 写的def的线程都不可用,于是模仿别人单线程直接插多线程,就出现以下错误,写的爬虫,线程是出来了,但是就是不能调用unicode,求大神解答

# -*- coding: utf-8 -*

import sys
reload(sys)
sys.setdefaultencoding('utf8')

import requests
import re
import time
import threading
import sys
import Queue as queue
import sys
import datetime

live = open('未爬.txt','w')
die = open('已爬.txt','w')
input_queue = queue.Queue()



list = raw__input("--> Enter Lists : ")
thread = input(" -> Thread : ")
link = “************”
head = {'User-agent':'Mozilla/5.0 (Linux; U; Android 4.4.2; en-US; HM NOTE 1W Build/KOT49H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/11.0.5.850 U3/0.8.0 Mobile Safari/534.30'}
s = requests.session()
g = s.get(link, headers=head)
list = open(list, 'r')_

print('')
print("-"*50)
print("-"*50)


while True:

        网页导入 = list.readline().replace('\n','')
        if not www:
            continue
        bacot = email.strip().split(':')
        xxx = {''************''}

        cek = s.post(link, headers=head, data=xxx).text
        if "************" in cek:
            print("|未爬|----->"+网页+"")
            live.write(网页+"\n")
        else: 
            print("|已爬 | -----> "+网页+" ")
            die.write(网页+"\n")

        for x in range(int(thread)):
            t = threading.Thread(target=cek)
            t.setDaemon(True)
            t.start()


print('')
print('-------------------------------------------------')
print('')_

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问

相似问题

2
vue.js 每次使用router.addRoutes 报错TypeError: routes.forEach is not a function 什么情况
3
爬取豆瓣电影存入数据库,报错TypeError: %d format: a number is required, not str
3
TypeError: form.validateFilds is not a function多表单分别向父组件传值时取不到Form的值
1
python温度转换提示“TypeError: string indices must be integers”
2
tensorflow 训练后出现这种结果,TypeError: 'NoneType' object is not iterable,请问怎么解决
1
scipy解非线性方程组报错TypeError: 'int' object is not callable
1
python3 sorted()函数报错 TypeError: '<' not supported between instances of 'str' and 'int'
2
TypeError: unhashable type: 'list' 错误怎么处理
1
Python, TypeError: APP() takes no arguments
2
zepto animate动画报错 已引入fx.js报Uncaught TypeError: this.bind is not a function的错误
1
TypeError: expected str, bytes or os.PathLike object, not tuple此报错有大神遇到过吗怎么解决
3
python运行脚本时提示TypeError: float argument required, not str这个错误,有大佬知道原因吗,望解答
1
python纸牌类TypeError: object of type 'FrenchDeck' has no len()
2
python中绘制世界地图TypeError: argument of type 'Key' is not iterable。
0
jQuery toggle连续点击事件报错 "Uncaught TypeError: undefined is not a function"
1
使用svg.js扩展插件svg.draggable.js在控制台报错?TypeError: rect.draggable is not a function
1
matplotlib: TypeError: unsupported operand type(s) for -: 'str' and 'float'求解决
1
TypeError: 'NoneType' object is not iterable到底时什么原因导致的,代码哪里有问题?已解决。
2
Python语法错误:TypeError: string indices must be integers
3
如何解决TypeError: expected string or buffer?