小编Jer*_*vis的帖子

任何人都可以总结一下Python中列表,元组,字典之间的显着差异吗?

关于Python中的一些数据结构有点混乱.

任何专家都可以给出一些经验法则来帮助我摆脱这种混乱局面吗?

python dictionary tuples list

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

谁可以解释这个程序的输出?

为什么以下程序同时产生两个输出消息,而不要求用户输入任何信息?

#include <stdio.h>
#include <ctype.h>

int main(void) 
{
    char input;
    do {
        printf("Enter a single character: \n");
    scanf("%c", &input);
        printf("The ordinal value is %d. \n",input);    

        } while(input != '#'); 
    return 0;
}
Run Code Online (Sandbox Code Playgroud)

输出如下:

Enter a single character:
s
The ordinal value is 115.
Enter a single character:
The ordinal value is 10.
Enter a single character:
Run Code Online (Sandbox Code Playgroud)

c

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

标签 统计

c ×1

dictionary ×1

list ×1

python ×1

tuples ×1