摘要: 把开发过程比较重要的代码段备份一下,如下代码段是关于python判断元素在列表中的索引位置的代码,希望能对大伙也有用途。 list = ["red","green","blue"] assert list.index("red") == 0assert list.index("blue") == 2 阅读全文
posted @ 2019-09-04 09:21 magnolia62 阅读(8650) 评论(0) 推荐(0) 编辑
摘要: 如下资料是关于C语言基础:简单的数学运算的内容。 #include <stdio.h> int main () { int seconds_in_an_hour; float average; average = (5 + 10 + 15 + 20) / 4; printf("The number 阅读全文
posted @ 2019-09-04 09:20 magnolia62 阅读(1459) 评论(0) 推荐(0) 编辑