{"id":1154646,"date":"2025-01-13T17:53:54","date_gmt":"2025-01-13T09:53:54","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1154646.html"},"modified":"2025-01-13T17:53:56","modified_gmt":"2025-01-13T09:53:56","slug":"python%e5%a6%82%e4%bd%95%e5%86%99%e4%ba%91","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1154646.html","title":{"rendered":"python\u5982\u4f55\u5199\u4e91"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25184227\/5249f518-a936-4f8e-9a3d-405c75a3d5b6.webp\" alt=\"python\u5982\u4f55\u5199\u4e91\" \/><\/p>\n<p><p> <strong>Python \u5199\u4e91\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982Boto3\u6765\u4e0eAWS\u4e91\u670d\u52a1\u4ea4\u4e92\u3001\u4f7f\u7528Google Cloud Platform\u7684API\u4ee5\u53caMicrosoft Azure\u7684SDK\u7b49\u65b9\u6cd5\u3002<\/strong> \u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Boto3\u4e0eAWS\u4e91\u670d\u52a1\u8fdb\u884c\u4ea4\u4e92\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5\u548c\u914d\u7f6eBoto3<\/h3>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5Boto3<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5b89\u88c5Boto3\u5e93\u3002Boto3\u662fAWS\u7684Python SDK\uff0c\u7528\u4e8e\u4e0eAWS\u670d\u52a1\u8fdb\u884c\u4ea4\u4e92\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528pip\u6765\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install boto3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u914d\u7f6eAWS\u51ed\u8bc1<\/h4>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u9700\u8981\u914d\u7f6eAWS\u51ed\u8bc1\u3002\u53ef\u4ee5\u5728\u672c\u5730\u673a\u5668\u4e0a\u4f7f\u7528AWS CLI\u8fdb\u884c\u914d\u7f6e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">aws configure<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u63d0\u793a\u4f60\u8f93\u5165AWS\u8bbf\u95ee\u5bc6\u94a5ID\u3001\u79d8\u5bc6\u8bbf\u95ee\u5bc6\u94a5\u3001\u9ed8\u8ba4\u533a\u57df\u540d\u79f0\u548c\u9ed8\u8ba4\u8f93\u51fa\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528Boto3\u4e0eAWS S3\u4ea4\u4e92<\/h3>\n<\/p>\n<p><h4>1\u3001\u521b\u5efaS3\u5ba2\u6237\u7aef<\/h4>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2aS3\u5ba2\u6237\u7aef\u975e\u5e38\u7b80\u5355\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import boto3<\/p>\n<p>s3 = boto3.client(&#39;s3&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u4e0a\u4f20\u6587\u4ef6\u5230S3<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u5c06\u6587\u4ef6\u4e0a\u4f20\u5230S3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s3.upload_file(&#39;local_file.txt&#39;, &#39;my_bucket&#39;, &#39;s3_file.txt&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u4e0b\u8f7d\u6587\u4ef6\u4eceS3<\/h4>\n<\/p>\n<p><p>\u4e0b\u8f7d\u6587\u4ef6\u540c\u6837\u7b80\u5355\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s3.download_file(&#39;my_bucket&#39;, &#39;s3_file.txt&#39;, &#39;local_file.txt&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Boto3\u4e0eAWS EC2\u4ea4\u4e92<\/h3>\n<\/p>\n<p><h4>1\u3001\u521b\u5efaEC2\u5ba2\u6237\u7aef<\/h4>\n<\/p>\n<p><p>\u540c\u6837\uff0c\u9996\u5148\u521b\u5efa\u4e00\u4e2aEC2\u5ba2\u6237\u7aef\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">ec2 = boto3.client(&#39;ec2&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u542f\u52a8\u4e00\u4e2a\u65b0\u7684EC2\u5b9e\u4f8b<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u542f\u52a8\u4e00\u4e2a\u65b0\u7684EC2\u5b9e\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">response = ec2.run_instances(<\/p>\n<p>    ImageId=&#39;ami-0abcdef1234567890&#39;,<\/p>\n<p>    InstanceType=&#39;t2.micro&#39;,<\/p>\n<p>    MinCount=1,<\/p>\n<p>    MaxCount=1<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528Boto3\u4e0eAWS Lambda\u4ea4\u4e92<\/h3>\n<\/p>\n<p><h4>1\u3001\u521b\u5efaLambda\u5ba2\u6237\u7aef<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2aLambda\u5ba2\u6237\u7aef\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">lambda_client = boto3.client(&#39;lambda&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Lambda\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Lambda\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">response = lambda_client.create_function(<\/p>\n<p>    FunctionName=&#39;my_lambda_function&#39;,<\/p>\n<p>    Runtime=&#39;python3.8&#39;,<\/p>\n<p>    Role=&#39;arn:aws:iam::123456789012:role\/service-role\/MyLambdaRole&#39;,<\/p>\n<p>    Handler=&#39;lambda_function.lambda_handler&#39;,<\/p>\n<p>    Code={<\/p>\n<p>        &#39;ZipFile&#39;: open(&#39;my_lambda_function.zip&#39;, &#39;rb&#39;).read(),<\/p>\n<p>    },<\/p>\n<p>    Description=&#39;My Lambda function&#39;,<\/p>\n<p>    Timeout=300,<\/p>\n<p>    MemorySize=128<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528Boto3\u4e0eAWS DynamoDB\u4ea4\u4e92<\/h3>\n<\/p>\n<p><h4>1\u3001\u521b\u5efaDynamoDB\u5ba2\u6237\u7aef<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2aDynamoDB\u5ba2\u6237\u7aef\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">dynamodb = boto3.client(&#39;dynamodb&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u521b\u5efa\u4e00\u4e2a\u65b0\u7684DynamoDB\u8868<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u521b\u5efa\u4e00\u4e2a\u65b0\u7684DynamoDB\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">response = dynamodb.create_table(<\/p>\n<p>    TableName=&#39;MyTable&#39;,<\/p>\n<p>    KeySchema=[<\/p>\n<p>        {<\/p>\n<p>            &#39;AttributeName&#39;: &#39;ID&#39;,<\/p>\n<p>            &#39;KeyType&#39;: &#39;HASH&#39;<\/p>\n<p>        }<\/p>\n<p>    ],<\/p>\n<p>    AttributeDefinitions=[<\/p>\n<p>        {<\/p>\n<p>            &#39;AttributeName&#39;: &#39;ID&#39;,<\/p>\n<p>            &#39;AttributeType&#39;: &#39;S&#39;<\/p>\n<p>        }<\/p>\n<p>    ],<\/p>\n<p>    ProvisionedThroughput={<\/p>\n<p>        &#39;ReadCapacityUnits&#39;: 5,<\/p>\n<p>        &#39;WriteCapacityUnits&#39;: 5<\/p>\n<p>    }<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u63d2\u5165\u6570\u636e\u5230DynamoDB\u8868<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u5c06\u6570\u636e\u63d2\u5165\u5230DynamoDB\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">response = dynamodb.put_item(<\/p>\n<p>    TableName=&#39;MyTable&#39;,<\/p>\n<p>    Item={<\/p>\n<p>        &#39;ID&#39;: {&#39;S&#39;: &#39;123&#39;},<\/p>\n<p>        &#39;Name&#39;: {&#39;S&#39;: &#39;John Doe&#39;}<\/p>\n<p>    }<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528Google Cloud Platform\u7684API<\/h3>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5Google Cloud\u5e93<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5b89\u88c5Google Cloud\u7684\u5e93\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528pip\u6765\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install google-cloud-storage<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u914d\u7f6eGoogle Cloud\u51ed\u8bc1<\/h4>\n<\/p>\n<p><p>\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u670d\u52a1\u8d26\u6237\u5e76\u4e0b\u8f7dJSON\u5bc6\u94a5\u6587\u4ef6\uff0c\u7136\u540e\u8bbe\u7f6e<code>GOOGLE_APPLICATION_CREDENTIALS<\/code>\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">export GOOGLE_APPLICATION_CREDENTIALS=&quot;path\/to\/your\/service-account-file.json&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u4f7f\u7528Google Cloud Storage<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u4e0eGoogle Cloud Storage\u4ea4\u4e92\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from google.cloud import storage<\/p>\n<p>client = storage.Client()<\/p>\n<p>bucket = client.bucket(&#39;your-bucket-name&#39;)<\/p>\n<p>blob = bucket.blob(&#39;your-object-name&#39;)<\/p>\n<h2><strong>\u4e0a\u4f20\u6587\u4ef6<\/strong><\/h2>\n<p>blob.upload_from_filename(&#39;local-file.txt&#39;)<\/p>\n<h2><strong>\u4e0b\u8f7d\u6587\u4ef6<\/strong><\/h2>\n<p>blob.download_to_filename(&#39;local-file.txt&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u4f7f\u7528Microsoft Azure\u7684SDK<\/h3>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5Azure SDK<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5b89\u88c5Azure SDK\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528pip\u6765\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install azure-storage-blob<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u914d\u7f6eAzure\u51ed\u8bc1<\/h4>\n<\/p>\n<p><p>\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2aAzure\u5b58\u50a8\u8d26\u6237\u5e76\u83b7\u53d6\u8fde\u63a5\u5b57\u7b26\u4e32\u3002\u7136\u540e\u8bbe\u7f6e<code>AZURE_STORAGE_CONNECTION_STRING<\/code>\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">export AZURE_STORAGE_CONNECTION_STRING=&quot;your_connection_string&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u4f7f\u7528Azure Blob Storage<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u4e0eAzure Blob Storage\u4ea4\u4e92\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from azure.storage.blob import BlobServiceClient<\/p>\n<h2><strong>\u521b\u5efaBlobServiceClient<\/strong><\/h2>\n<p>blob_service_client = BlobServiceClient.from_connection_string(os.getenv(&#39;AZURE_STORAGE_CONNECTION_STRING&#39;))<\/p>\n<h2><strong>\u521b\u5efa\u5bb9\u5668<\/strong><\/h2>\n<p>cont<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ner_name = &#39;my-container&#39;<\/p>\n<p>container_client = blob_service_client.create_container(container_name)<\/p>\n<h2><strong>\u4e0a\u4f20\u6587\u4ef6<\/strong><\/h2>\n<p>blob_client = blob_service_client.get_blob_client(container=container_name, blob=&#39;my-blob&#39;)<\/p>\n<p>with open(&#39;local-file.txt&#39;, &#39;rb&#39;) as data:<\/p>\n<p>    blob_client.upload_blob(data)<\/p>\n<h2><strong>\u4e0b\u8f7d\u6587\u4ef6<\/strong><\/h2>\n<p>with open(&#39;local-file.txt&#39;, &#39;wb&#39;) as download_file:<\/p>\n<p>    download_file.write(blob_client.download_blob().readall())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528Python\u4e0e\u5404\u79cd\u4e91\u5e73\u53f0\u7684SDK\uff08\u5982Boto3\u3001Google Cloud Client Library\u548cAzure SDK\uff09\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u4e0e\u8fd9\u4e9b\u4e91\u670d\u52a1\u8fdb\u884c\u4ea4\u4e92\u3002\u6bcf\u4e2a\u4e91\u5e73\u53f0\u90fd\u6709\u5176\u72ec\u7279\u7684API\u548c\u65b9\u6cd5\uff0c\u4f46\u57fa\u672c\u7684\u64cd\u4f5c\uff0c\u5982\u4e0a\u4f20\u548c\u4e0b\u8f7d\u6587\u4ef6\u3001\u542f\u52a8\u5b9e\u4f8b\u548c\u64cd\u4f5c\u6570\u636e\u5e93\uff0c\u90fd\u662f\u76f8\u4f3c\u7684\u3002\u4e86\u89e3\u8fd9\u4e9b\u5e93\u548c\u65b9\u6cd5\uff0c\u4f60\u5c06\u80fd\u591f\u66f4\u597d\u5730\u5229\u7528\u4e91\u670d\u52a1\uff0c\u63d0\u5347\u4f60\u7684\u5f00\u53d1\u6548\u7387\u548c\u5e94\u7528\u7684\u53ef\u6269\u5c55\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4e91\u8ba1\u7b97\u5e94\u7528\u7a0b\u5e8f\uff1f<\/strong><br \/>\u8981\u5728Python\u4e2d\u521b\u5efa\u4e91\u8ba1\u7b97\u5e94\u7528\u7a0b\u5e8f\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u8bf8\u5982Flask\u6216Django\u7b49Web\u6846\u67b6\u6765\u6784\u5efa\u540e\u7aef\u3002\u7ed3\u5408\u4e91\u670d\u52a1\u63d0\u4f9b\u5546\uff08\u5982AWS\u3001Google Cloud\u6216Azure\uff09\u7684API\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u90e8\u7f72\u548c\u7ba1\u7406\u5e94\u7528\u7a0b\u5e8f\u3002\u540c\u65f6\uff0c\u5b66\u4e60\u4f7f\u7528Docker\u548cKubernetes\u7b49\u5de5\u5177\u4e5f\u6709\u52a9\u4e8e\u7b80\u5316\u5e94\u7528\u7a0b\u5e8f\u7684\u5bb9\u5668\u5316\u548c\u7ba1\u7406\u8fc7\u7a0b\u3002<\/p>\n<p><strong>Python\u652f\u6301\u54ea\u4e9b\u4e91\u670d\u52a1\uff1f<\/strong><br \/>Python\u652f\u6301\u591a\u79cd\u4e91\u670d\u52a1\uff0c\u5305\u62ecAWS\uff08\u901a\u8fc7Boto3\u5e93\uff09\u3001Google Cloud\uff08\u4f7f\u7528google-cloud\u5e93\uff09\u548cAzure\uff08\u901a\u8fc7Azure SDK for Python\uff09\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684API\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u65b9\u4fbf\u5730\u4e0e\u4e91\u670d\u52a1\u8fdb\u884c\u4ea4\u4e92\uff0c\u5982\u5b58\u50a8\u6570\u636e\u3001\u5904\u7406\u8ba1\u7b97\u4efb\u52a1\u548c\u7ba1\u7406\u865a\u62df\u673a\u7b49\u3002<\/p>\n<p><strong>\u5728\u4e91\u73af\u5883\u4e2d\u90e8\u7f72Python\u5e94\u7528\u7684\u6700\u4f73\u5b9e\u8df5\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728\u4e91\u73af\u5883\u4e2d\u90e8\u7f72Python\u5e94\u7528\u65f6\uff0c\u5efa\u8bae\u9075\u5faa\u4ee5\u4e0b\u6700\u4f73\u5b9e\u8df5\uff1a\u786e\u4fdd\u4ee3\u7801\u7684\u53ef\u79fb\u690d\u6027\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u6765\u7ba1\u7406\u4f9d\u8d56\uff0c\u5b9e\u65bd\u6301\u7eed\u96c6\u6210\/\u6301\u7eed\u90e8\u7f72\uff08<a href=\"https:\/\/docs.pingcode.com\/blog\/devops\/52691.html\" target=\"_blank\">CI\/CD<\/a>\uff09\u6d41\u7a0b\uff0c\u5229\u7528\u4e91\u63d0\u4f9b\u7684\u76d1\u63a7\u548c\u65e5\u5fd7\u670d\u52a1\u6765\u8ddf\u8e2a\u5e94\u7528\u6027\u80fd\uff0c\u5e76\u5b9a\u671f\u8fdb\u884c\u5b89\u5168\u5ba1\u8ba1\u4ee5\u4fdd\u62a4\u5e94\u7528\u548c\u6570\u636e\u7684\u5b89\u5168\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python \u5199\u4e91\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982Boto3\u6765\u4e0eAWS\u4e91\u670d\u52a1\u4ea4\u4e92\u3001\u4f7f\u7528Google Clou [&hellip;]","protected":false},"author":3,"featured_media":1154653,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1154646"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1154646"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1154646\/revisions"}],"predecessor-version":[{"id":1154655,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1154646\/revisions\/1154655"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1154653"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1154646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1154646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1154646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}