什么是ChatGPT?
什么是ChatGPT?我们看看它自己的回答。

以下是维基百科关于 ChatGPT 的相关介绍:
ChatGPT是OpenAI开发的人工智能聊天机器人原型,专注于可用性和对话。聊天机器人使用经过强化学习训练的大型语言模型,并基于GPT-3.5架构。ChatGPT于2022年11月推出,因其详细的响应和历史知识而受到关注,尽管其准确性受到了批评。
让ChatGPT 写几段代码


public class TimerWheel { // 时间轮的槽数量 private int wheelSize; // 槽的时间间隔 private int interval; // 时间轮的当前槽 private int currentSlot; // 时间轮中的槽 private List<List<TimerTask>> slots;
public TimerWheel(int wheelSize, int interval) this.wheelSize = wheelSize; this.interval = interval; currentSlot = 0; slots = new ArrayList<>(wheelSize); for (int i = 0; i < wheelSize; i++) { slots.add(new LinkedList<>()); } }
// 增加一个定时任务public void addTask(TimerTask task) int delay = task.getDelay(); int slot = (delay / interval + currentSlot) % wheelSize; slots.get(slot).add(task); }
// 执行时间轮的槽中的定时任务public void tick() List<TimerTask> tasks = slots.get(currentSlot); for (TimerTask task : tasks) { task.run(); } tasks.clear(); currentSlot = (currentSlot + 1) % wheelSize; }}

这个注释感觉比大多数程序员写的都要多啊
看看其他语言怎么样吧

type Node struct { Val int Next *Node}
type LinkedList struct { Head *Node}
func isIntersect(list1, list2 *LinkedList) bool if list1 == nil || list2 == nil { return false } tail1 := list1.getTail() tail2 := list2.getTail() return tail1 == tail2}
func (list *LinkedList) getTail() *Node if list.Head == nil { return nil } cur := list.Head for cur.Next != nil { cur = cur.Next } return cur }

也是完全没有问题,简直是虎躯一震。
怎么注册ChatGPT
准备工作:
- 科学上网(懂的都懂)
- 一个邮箱用于注册(qq邮箱也可以)
- 一个可以接收验证码的国外手机号
- 一个浏览器(建议使用无痕模式)
开始注册ChatGPT:
1、在设备上开启代理。
建议使用美国节点,并且使用全局模式,不然可能报错“OpenAI's services are not available in your country.”
2、访问 ChatGPT 登录页开始注册。
ChatGPT 登录页为 https://chat.openai.com/auth/login。点击 Sign up 根据提示进行创建一个 OpenAI 账号;输入你的电子邮箱继续。

3、根据屏幕指示操作。
完善你的姓名,机构名称可不填,点击下方的 Continue 按钮后,你会来到验证手机号码界面。可以先停在这个页面。
4、前往接码平台买一个海外手机号
我们只需要一个临时的海外手机号来接收 OpenAI 的验证码即可,不需要购买海外的实体手机卡。
推荐在 sms-activate.org 上花 $0.5 买一个印度的手机号接收验证码。操作步骤如下:
1)前往 sms-activate.org 并注册账号;注册完成后登录账号。
2)点击右上角 Balance 下方的金额,然后 开始充值:

3)选择支付宝进行充值

4)充值完毕后,返回首页;在左侧边栏的搜索框内,输入 openai 找到 OpenAI 服务,并点击:

选择印度失败了,建议换成印尼🇮🇩/巴西🇧🇷/泰国🇹🇭试试

把电话号码复制到验证手机号码界面,然后点击 Send code via SMS。然后等一会获取验证码,完成注册。
5、选择你注册 OpenAI 的主要用途
此处选择“I’m exploring personal feature” 即可。
使用ChatGPT

在最下面输入你想说的话,可以开始对话了。

最后,让他帮忙画一幅画,来结束心情不好一天吧

