PHP 写入文件

<?php file_put_contents('ip.txt', '写入内容'.PHP_EOL, FILE_APPEND) ?> PHP_EOL是换行,跟据自己的需求是否增加!

Java 打印杨辉三角

package DataType; import java.util.Scanner; public class Demo16 { public static void main(String[] args) { ...

Python 截取两个字符串之间的内容(re)

import re str1 = 'AwdnmdB' re1 = r'A(.*?)B' reResult = re.findall(re1, str1) print(reResult)