首页 Python

aws s3 put object api 调用示例

  • yiqingpeng
  • 2019-02-18
  • 0
  •  
aws s3 put object api 调用示例: #!/usr/bin/python #coding=utf-8 import sys, os, base64, datetime, hashlib, hmac, urllib, json import requests # pip install requests def fileSiz

python实现简单的C/S系统

server端代码: #!/usr/bin/python import time,os, socket,sys,ConfigParser,threading msgContainer = {}; # message container list clientThreads = {}; def loadConf(): cnfPsr = ConfigParser.Conf

Python安装扩展模块时报错UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)

  • yiqingpeng
  • 2015-07-10
  • 0
  •  
安装curllib2模块时(cd C:\Python27\Scripts  easy_install curllib2),出现如下错误: Traceback (most recent call last):   File "C:\Python27\Scripts\easy_install-script.py", line 8, in &