小编Gio*_*dze的帖子

uint16_t和64位处理器的unsigned short int之间有什么区别?

我开始使用类型的变量uint16_t,但由于我的项目限制,我无法使用该数据类型.有可能unsigned short int代替uint16_t吗?我不知道他们俩之间的区别.有人可以澄清一下吗?

c linux

29
推荐指数
2
解决办法
11万
查看次数

在 github 工作流程中安排 firebase.json 文件的入口点

React 项目旨在托管在 Firebase 托管服务上。我按照说明操作并成功部署了我想要的版本。它还询问我是否想将该项目与 Github Workflow 结合起来。这意味着它将pull我的项目main分支并merge(自动部署)到 firebase、构建并完成部署。
这里的问题是 React 文件夹位于./frontend目录中,而不是根目录中。弹出的第一个错误是:

Verifying firebase.json exists

  Error: firebase.json file not found. If your firebase.json file is not in the root of your repo, edit the entryPoint option of this GitHub action.
Run Code Online (Sandbox Code Playgroud)

屁股建议说我entrypoint...-merge.yml...pull-request.yml文件添加了变量:

Verifying firebase.json exists

  Error: firebase.json file not found. If your firebase.json file is not in the root of your repo, edit the entryPoint option of this …
Run Code Online (Sandbox Code Playgroud)

firebase reactjs github-actions

3
推荐指数
1
解决办法
1339
查看次数

如何比较ASCII值

我想将字母的ASCII值存储到变量中,我该怎么做?

例如 :

r ASCII variable = 82
main()
{
    character = "character read from a file";
    variable= "r ascii"; //(in this case 82), the problem is that the letter is always        variable.;
    printf( "the value of %c is %d, character, variable)
}
Run Code Online (Sandbox Code Playgroud)

我怎样才能做到这一点?

另外还要注意,我怎样才能.txt逐个字符地读取文件?所以它可以保存在字符变量上.

c text ascii file file-read

2
推荐指数
1
解决办法
5万
查看次数

如何使用 Discord,py 的用户 ID 获取特定用户的头像

我曾经discord.py制作过一个机器人,将用户 ID 存储在数据库中以识别他们,但我不知道如何仅通过使用特定用户的id. 我四处搜索并发现了类似的东西 -Client.get_user()但它对我不起作用,因为我无法从文档中理解它的工作原理。有什么方法可以从数据库中获取用户的 id 字符串并将其传递给函数以获取该用户的头像并在嵌入中使用它吗?

我在 StackOverflow 上发现了另一个像我一样的问题,但该问题的解决方案也不适合我。

python discord discord.py

2
推荐指数
1
解决办法
1万
查看次数

标签 统计

c ×2

ascii ×1

discord ×1

discord.py ×1

file ×1

file-read ×1

firebase ×1

github-actions ×1

linux ×1

python ×1

reactjs ×1

text ×1