来源:大数据文摘
本文约2088字,建议阅读4分钟
本文介绍
了OpenAI发布的一种AI工具Codex的升级版本,它可以将英语翻译成代码,甚至支持语音录入。
‘when the rocket is clicked, temporarily display some text saying ‘fire thruster! ' in white on the current location——and temporarily speed up by 4x for 0.25 second’ (“当火箭被点击,暂时显示一些白色文字说“火焰推进器!”,并暂时加速4倍,持续0.25秒”)
#Use the airnow API to to find and print the current AQI for zip code 94549
import urllib2
import json
api_key = "E722A2CA-9D39–4CDD-943B-8BAD9A298E0B"
url ="http://www.airnowapi.org/aq/observation/zipCode/current/?format=application/json&zipCode=94549&distance=25&API_KEY="+ api_key
request = urllib2.Request(url)
response = urllib2.urlopen(request)
data = json.load(response)
print data[0]['AQI']
Get the current price of Bitcoin using Coindesk’sAPI and display it as giant red letters in the middle of a webpage.
https://www.youtube.com/watch?v=Zm9B-DvwOgw&t=248s
https://openai.com/blog/openai-codex/
https://www.youtube.com/watch?v=6yJWMuUWcxY
https://www.youtube.com/watch?v=FC962DmVfSU
https://www.pcgamer.com/this-ai-tries-to-code-whatever-you-tell-it-to-even-videogames/
https://betterprogramming.pub/i-beta-tested-openais-codex-and-the-results-are-spooky-good-e282a1874c79
9月30日 报名截止