oss_test.py 400 B

1234567891011121314151617
  1. #!/usr/bin/python3.6
  2. # -*- coding: utf-8 -*-
  3. # @Time : 2021/3/18 12:00
  4. # @Author : lijunliang
  5. # @Email : lijunliang@topnet.net.cn
  6. # @File : oss_test.py.py
  7. # @Software: PyCharm
  8. from util.oss_file import OssServeClient
  9. if __name__ == '__main__':
  10. import uuid
  11. id = str(uuid.uuid1())
  12. #print(id)
  13. osc = OssServeClient()
  14. ret = osc.upload_text_file(id,"mytest")
  15. print(ret)