hair_color='black'
print out 'his hair is black'
print out 'his hair is black and his face is red'
Use the %s string formatting capability to finish the following tasks.
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- chuifengde 2022-03-18 16:10关注
hair_color='black' print("his hair is %s" % hair_color) print("his hair is %s and his face is red" % hair_color)
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 1无用