[编程入门]宏定义之找最大数-题解(Python代码) python 摘要:```python list = [] #定义列表 list=0 #定义变量 list = input().split() #输入数据以空格切割放进list 里面 ans = flo…… 题解列表 2019年11月22日 0 点赞 2 评论 2359 浏览 评分:9.7
[编程入门]实数的打印-题解(Python代码) python 摘要:```python num = float(input()) #输入数据后把 字符串变成浮点数 for i in range(1,4): #1到3 for j in range(i): …… 题解列表 2019年11月22日 0 点赞 0 评论 2042 浏览 评分:8.0
[编程入门]选择排序-题解(C++代码) 摘要:首先将第一位数默认为最小值,然后依此与后面的数比较,若有更小的,则与第一位进行交换。依此类推,从第二个数再次比较..... 具体代码如下: ```cpp #include using name…… 题解列表 2019年11月22日 0 点赞 0 评论 595 浏览 评分:0.0
[编程入门]C语言之二进制位问题-题解(C语言代码) 摘要:1. 题目指定32位无符号整数,引用头文件使用固定宽度的整型 2. 要取出数字中的某些位,使用掩码加按位与运算实现,使用异或加移位运算生成掩码。 ```c #include #inclu…… 题解列表 2019年11月22日 0 点赞 0 评论 1060 浏览 评分:9.9
[编程入门]分段函数求值 (Python代码) 摘要:直接if判断 ```python x = int(input()) if x=1 and x…… 题解列表 2019年11月22日 0 点赞 0 评论 1990 浏览 评分:4.3
[编程入门]成绩评定-题解(Python代码) 摘要:if else语句 ```python x = int(input()) if x=60 and x=70 and x=80 and x…… 题解列表 2019年11月22日 0 点赞 1 评论 2600 浏览 评分:8.6
[编程入门]电报加密-题解(Python代码)python 摘要:ord()函数返回对应字符的ascii码 chr()函数返回ascii码对应的字符  步骤…… 题解列表 2019年11月22日 0 点赞 0 评论 1402 浏览 评分:9.7
[编程入门]数字的处理与判断 (Python代码) 摘要:方法一,直接利用字符串切片 ```python x = input() print(len(x)) for i in range(len(x)): print(x[i], end="…… 题解列表 2019年11月22日 0 点赞 0 评论 1408 浏览 评分:6.0
[编程入门]三个数字的排序-题解(Python代码) python sort 和 冒泡排序 摘要:快速版 ```python list = input().split()#输入 以空格切割放进list for i in range(len(list)):#字符转换为整型 list[…… 题解列表 2019年11月22日 0 点赞 0 评论 1255 浏览 评分:9.9
[编程入门]利润计算 (Python代码) 摘要:if else语句,很长```python ``` x = int(input()) if x100000 and x200000 and x400000 and x600000 and x…… 题解列表 2019年11月22日 0 点赞 2 评论 3212 浏览 评分:8.8