在Python附带的IDLE中,如果我输入:
a='c:\
Run Code Online (Sandbox Code Playgroud)
显示包含目录文件内容的列表以供建议.如果我输入Pycharm:
a='c:\
Run Code Online (Sandbox Code Playgroud)
没有显示目录中的内容列表.如果我按下'control + space',PyCharm的自动完成建议就是我的代码中的函数和变量列表.PyCharm是否具有在代码中自动完成文件路径建议的功能?
该代码应该检查9的整数数组并返回它的频率,但该方法未被识别.任何帮助请使这个代码工作.
public static int arrayCount9(int[] nums) {
int count = 0;
for (int i=0; i<nums.length; i++) {
if (nums[i] == 9) {
count++;
}
}
return count;
};
public static void main(String[]args){
System.out.println(arrayCount9({1,2,9}));
}
Run Code Online (Sandbox Code Playgroud)