- 论坛徽章:
- 6
|
本帖最后由 1cpuer 于 2018-06-05 11:23 编辑
回复 3# christmas1102
: 1528168117:0;➜ python 'import re;a1="[\"j\"]%s" % a.split()[0].count("j");a2="[\"j\"]%s" % a.split()[1].count("j");print("%s %s %s" % (re.sub("j+",a1,a.split()[0]),re.sub("j+",a2,a.split()[1]),a.split()[2]))' kk-1.kf
python: can't open file 'import re;a1="[\"j\"]%s" % a.split()[0].count("j");a2="[\"j\"]%s" % a.split()[1].count("j");print("%s %s %s" % (re.sub("j+",a1,a.split()[0]),re.sub("j+",a2,a.split()[1]),a.split()[2]))': [Errno 2] No such file or directory
作用与文件不会啊
: 1528168765:0;➜ cat kk-1.kf
tt22hhHHjjjkkk jjjj 2-4.1
|
|