题解 | #截取用户名前10位#
截取用户名前10位
https://www.nowcoder.com/practice/0d3cd14ca4bc4e67ace6399a041e961e
def print_first_n_chars(s,n): print(s[:n]) s = input() n = 10 print_first_n_chars(s,n)
截取用户名前10位
https://www.nowcoder.com/practice/0d3cd14ca4bc4e67ace6399a041e961e
def print_first_n_chars(s,n): print(s[:n]) s = input() n = 10 print_first_n_chars(s,n)
相关推荐