python
-
Python入门教程(十五)Python的字典
目录字典(Dictionary)访问项目更改值遍历字典检查键是否存在字典长度删除项目复制字典嵌套字典dict() 构造函数php字典方法字典(Dictionary)[详细]
2023-04-18 09:24 分类:开发 -
Python入门教程(十四)Python的集合
目录集合(Set)访问项目更改项目添加项目获取 Set 的长度删除项目合并两个集合set() 构造函数Set 方法集合(Set)[详细]
2023-04-18 09:22 分类:开发 -
Python入门教程(十三)Python元组
元组(Tuple) 元组是有序且不可更改的集合。在 Pywww.devze.comthon 中,元组是用圆括号编写的。[详细]
2023-04-15 09:23 分类:开发 -
Python入门教程(十二)Python列表
目录python 集合(数组)列表访问项目负的索引索引范围负索引的范围更改项目值遍历列表检查项目是否存在列表长度添加项目删除项目复制列表合并两个列表列表方法Python 集合(数组)[详细]
2023-04-15 09:22 分类:开发 python try:except:finally
# Open new file to write file = None try: file = open(filePath, \'w\') except IOError: msg = (\"Unable to create file on disk.\")[详细]
2023-04-13 09:56 分类:问答How to rerun a series of statements in the same order in a shell?
I bet you have came across the same problem like me. I use shell(s) a lot. For python, ruby(irb), mongo... I use some shortcurt like crt+a to go at the begining, crt+e at the end, crt+k to clean to th[详细]
2023-04-13 09:55 分类:问答Determine if a group within a regex match is a number
If I have, for example, the below regex string: \'^/abc/(?P<some_int>\\d{3})/\\d{0,2}/$\' Is there an easy way to determine when a group is a number/int?[详细]
2023-04-13 09:44 分类:问答Call MATLAB functions using Python
I have a full functional MATLAB program, and I need to make a Python script where I can call a specific function from the MATLAB program. I am using开发者_运维知识库 Python version 2.7, and I did try[详细]
2023-04-13 09:39 分类:问答How do I completely uninstall Python and all its packages?
I installed some packages , but I think either some of the packages corrupted or are conflicting with versions[详细]
2023-04-13 09:37 分类:问答Can I remove negative values from a list while keeping the list values as strings?
I\'m trying to format a tab delimited text file where there are negative values in the data set.I\'m trying to ignore lines of data where there is any negative values showing up.I want to write to an[详细]
2023-04-13 09:33 分类:问答