新建两个变量,name为xiaoming,gender为boy 3.拼装一个字符串message,内容为his name is xiaoming, his gender is boy 4.把message变成大写形式,然后print输
时间: 2023-04-06 18:05:03 浏览: 153
xiaomi.rar_wwwxiaoming108_www:xiaoming_条码运用
出来。
可以回答这个问题。代码如下:
```
name = "xiaoming"
gender = "boy"
message = "his name is " + name + ", his gender is " + gender
print(message.upper())
```
输出结果为:
```
HIS NAME IS XIAOMING, HIS GENDER IS BOY
```
阅读全文