莲藕排骨汤218 2022-03-18 15:45 采纳率: 100%
浏览 8
已结题

Use the %s string formatting capability to finish the following tasks.

hair_color='black'
print out 'his hair is black'
print out 'his hair is black and his face is red'

  • 写回答

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)
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 3月26日
  • 已采纳回答 3月18日
  • 创建了问题 3月18日