少壮不努力,ChatGPT来代替!ChatGPT浅体验
少壮不努力,ChatGPT来代替!
哈喽,老伙计们!
ChatGPT
也热火朝天了有一段时间了,今天闲来没事,也想着玩一玩ChatGPT
,看看是不是网上说的那么强大!
废话不多说,开整!
1、ChatGPT
介绍
ChatGPT
: Optimizing Language Models for Dialogue,即优化对话的语言模型,它以对话的方式进行交互。对话形式使ChatGPT
能够回答后续问题,承认错误,质疑不正确的前提,并拒绝不适当的请求。
官方的一个例子:

看到图片的第一印象:
ChatGPT
竟然能够查错代码,让人感觉到不可思议!
2、注册账号
ChatGPT
的体验网址:https://chat.openai.com/auth/login
ChatGPT
是由OpenAI
(一家位于旧金山的公司),我们注册的时候会提示我们去注册一个账号,下面有微软账号登录和Google
账号登录,但是微软账号登录后会提示Not Available
,也就是不支持我们的国家地区,所以只能科学上网了!

除了科学上网外,这里还涉及到国外手机验证码,这时候就需要一个接码平台了,来生成一个虚拟的国外手机号,然后接收验证短信!
接码平台:https://sms-activate.org/cn

网上教程比较多,这里省略一万字......
这里建议大家了解一下上面涉及到的工具,毕竟这些工具都是开发者常用的。
3、体验ChatGPT
登录上ChatGPT
之后,我们就可以看到如下界面,此时就可以愉快地畅聊了!

浅聊......

Coding...

#include <linux/module.h>#include <linux/i2c.h>/* 定义 I2C 设备名称 */#define DEVICE_NAME "i2c_device"/* 定义 I2C 设备地址 */#define DEVICE_ADDR 0x20/* 定义 I2C 设备结构体 */struct i2c_dev { struct i2c_client *client;};static int i2c_probe(struct i2c_client *client, const struct i2c_device_id *id){ struct i2c_dev *i2c_dev; /* 为 I2C 设备分配内存空间 */ i2c_dev = devm_kzalloc(&client->dev, sizeof(*i2c_dev), GFP_KERNEL); if (!i2c_dev) return -ENOMEM; i2c_dev->client = client; i2c_set_clientdata(client, i2c_dev); /* 在这里执行 I2C 设备初始化操作 */ return 0;}static int i2c_remove(struct i2c_client *client){ struct i2c_dev *i2c_dev = i2c_get_clientdata(client); /* 在这里执行 I2C 设备资源释放操作 */ return 0;}static const struct i2c_device_id i2c_id[] = { { DEVICE_NAME, DEVICE_ADDR }, { }};MODULE_DEVICE_TABLE(i2c, i2c_id);static struct i2c_driver i2c_driver = { .driver = { .name = DEVICE_NAME, .owner = THIS_MODULE, }, .probe = i2c_probe, .remove = i2c_remove, .id_table = i2c_id,};module_i2c_driver(i2c_driver);MODULE_AUTHOR("your name");MODULE_DESCRIPTION("I2C driver for Linux");MODULE_LICENSE("GPL");
上面的代码就是
ChatGPT
自动写出来的,我惊了!
一个人工智能的语言模型能够分分钟干出来代码,着实有点牛了.

你以为这就完了吗?

#!/bin/bash# 设置网卡名称IFACE="eth0"# 循环测试网卡是否存在while truedo if ifconfig $IFACE then echo "网卡 $IFACE 已存在" else echo "网卡 $IFACE 不存在" fi # 每隔一段时间测试一次 sleep 1done
与ChatGPT
玩了一会,深吸一口气......
闪电发卡ChatGPT产品推荐:
ChatGPT独享账号:https://www.chatgptzh.com/post/86.html
ChatGPT Plus共享账号:https://www.chatgptzh.com/post/319.html
ChatGPT Plus独享账号(购买充值代充订阅):https://www.chatgptzh.com/post/306.html
ChatGPT APIKey购买充值(直连+转发):https://www.chatgptzh.com/post/305.html
ChatGPT Plus国内镜像逆向版:https://www.chatgptzh.com/post/312.html
ChatGPT国内版(AIChat):https://www.chatgptzh.com/post/318.html