小编Vin*_*mbe的帖子

jupyter 笔记本在 new 下不显示 python 选项

我在创建新的 ipython 笔记本时遇到问题。以前我曾经这样做到 new -> python 但现在我看不到任何 python 选项。另外,我无法打开任何 ipython 笔记本,我已经上传了几个小时了。

我最近删除了 %temp% 文件夹以释放 C 盘中的一些空间。这和这个有关系吗?我该如何解决?在此输入图像描述

python temp jupyter-notebook

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

为什么int arr [] = {0,3,2,4,5,6,7};给出错误并且int arr [7] = {0,3,2,4,5,6,7}; 不

#include<iostream>
#include<stdio.h>
using namespace std;
class Test
{   
   private:
   int array[]={0,2,4,6,8,10,12};//this line is the root cause of the error but why ?   
   public :
   void compute();
};
void Test::compute()
{
    int result =0;
    for(int i=0;i<7;i++)
    {
        result += array[i];
    }
        cout<<result;
}
int main()
{
    Test obj;
    obj.compute();
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

如果我将int array[]上面的代码替换为,array[7]则程序将编译并运行并显示警告。

c++ arrays

0
推荐指数
1
解决办法
87
查看次数

标签 统计

arrays ×1

c++ ×1

jupyter-notebook ×1

python ×1

temp ×1