2022年9月1日
摘要: 1 #python常用函数 2 os.getcwd() # 获取当前工作目录; 3 listdir() #显示当前目录下的文件 4 range(start, stop[, step]) #分别是起始、终止和步长 5 ceil(x) #返回数字的上入整数,如math.ceil(4.1) 返回 5 6 阅读全文
posted @ 2022-09-01 15:46 GooBo 阅读(230) 评论(0) 推荐(0)
摘要: 1 # anagrams('abba', ['aabb', 'abcd', 'bbaa', 'dada']), ['aabb', 'bbaa']) 2 def anagrams(word,words): 3 #your code here 4 arr = [] 5 data = list(word) 阅读全文
posted @ 2022-09-01 15:23 GooBo 阅读(27) 评论(0) 推荐(0)