摘要:
01、 002、解决方法 [root@PC1 test2]# conda install pandas 阅读全文
摘要:
001、 [root@PC1 test03]# ls a.txt [root@PC1 test03]# cat a.txt ## 测试数据 bookbookbookbook jjjj name=jack uuuuuuu 127.0.0.1 bookbook77 xxxxx.com eeebookbo 阅读全文
摘要:
001、删除文件的第一列 [root@PC1 test03]# ls a.txt [root@PC1 test03]# cat a.txt ## 测试数据 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 [root@PC1 te 阅读全文
摘要:
使用translate()方法进行字符串转换,通常需要先创建一个转换表。转换表可以使用Python内置的str.maketrans()方法创建,也可以手动创建一个字典来实现。 001、生成转换表 >>> table = str.maketrans("135", "QMT") ## 将1转换为Q,3转 阅读全文