ฉันขอโทษที่ไม่สามารถระบุปัญหาได้อีกต่อไป แต่นั่นเป็นเพราะฉันไม่เข้าใจว่าเกิดอะไรขึ้นที่นี่ ข้อผิดพลาดเกิดจากบรรทัด 75 แต่เขามีค่าทั้งหมดของตัวแปรที่ฉันเรียก เห็นได้ชัดว่าฉันขาดอะไรบางอย่างที่นี่ ฉันหวังว่าจะมีคนบอกฉันว่าอะไร
สิ่งที่ฉันพยายามทำคือการเพิ่มสตริงให้กับตัวแปรสำหรับทุกส่วนของรายการ
<type 'exceptions.MemoryError'> Python 2.6.4: /opt/users/ipg/s/p/ipg.*********/python/python
Sat May 10 19:42:39 2014
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
73 """ % (description[field_count].value)
74 for item in upload_field:
75 article_content += '<img src="http://www.*****.com/images/%s/%s">' % (link_title, item.filename)
76 field_count = field_count + 1
77 elif isinstance(description, basestring):
___
article_content undefined, link_title = 'sssfzxs', item = FieldStorage('upload_image1', '857143_7542303279...\x94\x01\xa3\x89\x82\xcc0\xc9n\xea/\x87\xff\xd9'), item.filename = '857143_754230327924155_1256712041_o.jpg'
<type 'exceptions.MemoryError'>:
args = ()
message = ''
+=
ทำให้หน่วยความจำไม่มีประสิทธิภาพอย่างมาก สันนิษฐานว่าคุณกำลังสร้างสตริงขนาดใหญ่จนหน่วยความจำที่มีอยู่ไม่เพียงพอ มีข้อมูลไม่เพียงพอที่จะพูดเพิ่มเติมที่นี่ - person Wooble   schedule 11.05.2014