You should use browse_venues_current_content.json
not "my_file"
:
endproduct = [1,2,3]
with open('browse_venues_current_content.json', 'w') as my_file:
json.dump(endproduct, my_file)
s3 = boto3.resource('s3')
result = s3.meta.client.upload_file(
'browse_venues_current_content.json',
'shofi-stuff',
'browse_venues_current_content.json')
print(result)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…