直接从六张开始看看书里有什么. cmp() len() max() and min() sorted() and reversed() enumerate() and zip() sum() list() and tuple() dir()方法来得到它所有的方法和属性 extend() and append() extend()接受一个列表的内容,然后把所有元素追加到另一个列表中 append()把整个元素追加列表中,如:[].extend('abc') 最后输出的结果就是 ['a',
Soma is a fashionable girl. She absolutely loves shiny stones that she can put on as jewellery accessories. She has been collecting stones since her childhood - now she has become really good with identifying which ones are fake and which ones are no
自动FTP的小脚本 使用以下脚本,可以实现自动FTP,将你需要的文件传送到需要的地方,或者将需要的文件从某个地方抓取下来. cd /PATH_YOU_WANT_TO_UPLOAD(DOWNLOAD) ftp -n <<- EOF open IP_ADDRESS user USERNAME PASSWORD ascii(or bin) put *(or get) bye EOF 下面详细讲解以下这段代码: 1. cd /PATH_YOU_WANT_TO_UPLOAD(DOWNLOAD) 首先将进
Palindromes A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when the string is read from left to right as when the string