Skip to content

Commit

Permalink
字符串类型转换
Browse files Browse the repository at this point in the history
  • Loading branch information
king41409 committed Jan 25, 2019
1 parent df1e8fa commit d680146
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/object_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@

# 获取Object的metadata
object_meta = bucket.get_object_meta('你的对象名')
print('last modified: ' + object_meta.last_modified)
print('last modified: ' + str(object_meta.last_modified))
print('etag: ' + object_meta.etag)
print('size: ' + object_meta.content_length)
print('size: ' + str(object_meta.content_length))

# 下载到本地文件
bucket.get_object_to_file('motto.txt', '本地文件名.txt')
Expand Down

0 comments on commit d680146

Please sign in to comment.