题解列表
1137: C语言训练-求函数值(python)
摘要:Python的默认最大递归深度(通常为1000)。当输入的x值较大时,函数f(x)会进行大量的递归调用,导致递归深度超过限制。
**解决方法**
- 增加递归深度限制:可以通过sys.setr……
1067: 二级C语言-分段函数(python)
摘要:[1067:二级C语言-分段函数](https://www.dotcpp.com/oj/problem1067.html?sid=18062507&lang=6#editor)
~~~pyth……
1050: [编程入门]结构体之成绩记录(python)
摘要:## 1050: [编程入门]结构体之成绩记录
对python来说还是很好实现的
~~~python
for i in range(int(input())):
print(','……
1049: [编程入门]结构体之时间设计(python)
摘要:
~~~python
def is_lun(y):
if y%100 == 0:
if y%400 == 0:
return True
……
1048: [编程入门]自定义函数之字符串拷贝(python)
摘要:1048: [编程入门]自定义函数之字符串拷贝
从索引`m-1`开始切片即可
~~~pythjon
input()
s = input()
m = int(input())
print……
1046: [编程入门]自定义函数之数字后移(python)
摘要:把末尾的插入`a[0]`,再把末尾的删除
~~~python
n = int(input())
a = list(map(int,input().split()))
m = int(inp……
编写题解 1045: [编程入门]自定义函数之整数处理(python)
摘要:[题目1045:[编程入门]自定义函数之整数处理](https://www.dotcpp.com/oj/problem1045.html?sid=18059704&lang=6#editor)
……
编写题解 1034: [编程入门]自定义函数之数字分离(python)
摘要:[题目1034:[编程入门]自定义函数之数字分离](https://www.dotcpp.com/oj/problem1034.html?sid=18058228&lang=6#editor)
……
1033: [编程入门]自定义函数之字符提取(python)
摘要:#### 1033: [编程入门]自定义函数之字符提取
可以采用关键字`in`来查询指定字符是否存在于指定字符串中,如果字符串中存在指定字符则返回True,如果不存在则返回False。
……