# -*- coding:utf-8 -*-
import json import requests import os curpath=os.path.dirname(os.path.realpath(__file__)) xmlpath=os.path.join(curpath,'read1.xml') with open(xmlpath,encoding="utf-8") as fp: body=fp.read() print(body)
本文共 285 字,大约阅读时间需要 1 分钟。
# -*- coding:utf-8 -*-
import json import requests import os curpath=os.path.dirname(os.path.realpath(__file__)) xmlpath=os.path.join(curpath,'read1.xml') with open(xmlpath,encoding="utf-8") as fp: body=fp.read() print(body)
转载于:https://www.cnblogs.com/NiceTime/p/10025543.html