程序填空题:土味情话生成器 - 实验2 神奇的print - 《Python编程基础及应用实验教程》(高等教育出版社)
请将下述程序补充完整并上机调试,使其可以生成期望的“土味情话”:
<br><br>
python
color = input()
noun = input("Enter a uncountable noun:")
print("Roses are",)
print(,"is blue",)
print("my love is you.")
<br>
期望的执行结果是(red, ocean为操作者输入):
<br><br>
Enter a color:red
Enter a uncountable noun:ocean
Roses are red,ocean is blue,my love is you.
<br>
解题思路: 请参考《Python编程基础及应用实验教程》。
<br> 该书是高等教育出版社《Python编程基础及应用》教材的配套实验指导书。
<br>**拼尽全力还是不会?参考B站习题讲解**<br>
哔哩哔哩up主:[海洋饼干叔叔](https://space.bilibili.com/384177380)<br> [Python课程](https://www.bilibili.com/video/BV1kt411R7uW/)
[Python习题](https://www.bilibili.com/video/BV1iL411t7UZ/)
[简洁的C和C++](https://www.bilibili.com/video/BV1it411d7zx/)
****
答案:
第1空:"Enter a color:"
第2空:color,end=","
第3空:noun
第4空:end=","
<br><br>
python
color = input()
noun = input("Enter a uncountable noun:")
print("Roses are",)
print(,"is blue",)
print("my love is you.")
<br>
期望的执行结果是(red, ocean为操作者输入):
<br><br>
Enter a color:red
Enter a uncountable noun:ocean
Roses are red,ocean is blue,my love is you.
<br>
解题思路: 请参考《Python编程基础及应用实验教程》。
<br> 该书是高等教育出版社《Python编程基础及应用》教材的配套实验指导书。
<br>**拼尽全力还是不会?参考B站习题讲解**<br>
哔哩哔哩up主:[海洋饼干叔叔](https://space.bilibili.com/384177380)<br> [Python课程](https://www.bilibili.com/video/BV1kt411R7uW/)
[Python习题](https://www.bilibili.com/video/BV1iL411t7UZ/)
[简洁的C和C++](https://www.bilibili.com/video/BV1it411d7zx/)
****
答案:
第1空:"Enter a color:"
第2空:color,end=","
第3空:noun
第4空:end=","