首页
编程
java
php
前端
首页
编程
java
php
前端
如何判断字符串行数的值
字符串a=
“a1234
b1234"
用什么命令能判断这个字符串的行数是2呢
a=
"""a1234 b1234"""
print
(a.count(
'\n'
)+
1
)
点击展开全文