Hadoop HDFS文件常用操作及注意事项 1.Copy a file from the local file system to HDFS The srcFile variable needs to contain the full name (path + file name) of the file in the local file system. The dstFile variable needs to contain the desired full name of the fi…
>>> name = "I love my job!" >>> name.capitalize() #首字母大写 'I love my job!' >>> name.count("o") #统计字母个数 2 >>> name.center(50,"-") #输出50个字符,不够以“-”补全,并且name放在中间;name.ljust(50,"-")是从最后…