color=input("Enter a color:")
noun=input("Enter a uncountable noun:")
print("Roses are",color,",",end=' ')
print(noun,"is bule,",end=' ')
print("my love is you.")
其中color和noun是需要用户输入数据,
"end=' '"用于不换行,python中的print函数都带有End属性,值为换行符,这里将其的值修改空格用以达到输出不换行的目的
假设输入red和ocean
运行结果是Roses are red,ocean is bule,my love is you.