日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

python delete_python 使用 delete 方法时报错,可以正常删除

發布時間:2025/3/19 python 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python delete_python 使用 delete 方法时报错,可以正常删除 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

testcase/test_organization.py:34 (TestOrganization.test_delete)

self =

def test_delete(self):

print(self.organization.delete(119))

test_organization.py:36:

…/api/organization.py:59: in delete

return self.send(data)

…/api/base_api.py:14: in send

return requests.request(**data).json()

…/env/lib/python3.7/site-packages/requests/models.py:898: in json

return complexjson.loads(self.text, **kwargs)

…/env/lib/python3.7/site-packages/simplejson/init.py:525: in loads

return _default_decoder.decode(s)

…/env/lib/python3.7/site-packages/simplejson/decoder.py:370: in decode

obj, end = self.raw_decode(s)

self = , s = ‘’

idx = 0, _w =

_PY3 = True

def raw_decode(self, s, idx=0, _w=WHITESPACE.match, _PY3=PY3):

"""Decode a JSON document from s (a str or unicode

beginning with a JSON document) and return a 2-tuple of the Python

representation and the index in s where the document ended.

Optionally, idx can be used to specify an offset in s where

the JSON document begins.

This can be used to decode a JSON document from a string that may

have extraneous data at the end.

"""

if idx < 0:

# Ensure that raw_decode bails on negative indexes, the regex

# would otherwise mask this behavior. #98

raise JSONDecodeError('Expecting value', s, idx)

if _PY3 and not isinstance(s, str):

raise TypeError("Input string must be text, not bytes")

# strip UTF-8 bom

if len(s) > idx:

ord0 = ord(s[idx])

if ord0 == 0xfeff:

idx += 1

elif ord0 == 0xef and s[idx:idx + 3] == '\xef\xbb\xbf':

idx += 3

return self.scan_once(s, idx=_w(s, idx).end())

E simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

…/env/lib/python3.7/site-packages/simplejson/decoder.py:400: JSONDecodeError

Assertion failed

Assertion failed

總結

以上是生活随笔為你收集整理的python delete_python 使用 delete 方法时报错,可以正常删除的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。