填空题:join()函数连接字符串(高教社,《Python编程基础及应用》习题10-1)
join()函数连接字符串(高教社,《Python编程基础及应用》习题10-1)
<br>
请写出下述程序的执行结果:
python
s = [str(x) for x in range(2,35,7)]
print(",".join(s))
执行结果为:
答案:
第1空:2,9,16,23,30 ||
<br>
请写出下述程序的执行结果:
python
s = [str(x) for x in range(2,35,7)]
print(",".join(s))
执行结果为:
答案:
第1空:2,9,16,23,30 ||