Bob - 数字与字符串

# 打招呼 in  在什么里面  put 放进去   、
# input 放里面
# game = input('你喜欢玩什么游戏呀')
# print(game)

# a = 2
# b = '33333'
# print(a+b)
# 数字 + 数字 : 数学运算
# 字符串 + 字符串: 连接
# 数字 + 字符串: 太难了


# a = '20'
# b = 33333
# print(a*b)
# 数字 * 数字 : 数学运算
# 字符串 * 字符串:太难了
# 数字 * 字符串: 复制字符串的遍数

a = 3   # 数字  int  ---integer
# a = str(a)
b = '5'  # 字符串 str   ---string
b = int(b)
print(a+b)

import turtle

turtle.write("Bob",font=(None,200))
turtle.done()
# 让电脑问我们叫什么名字
he = input("""你叫什么名字?
""")
# print("你好"+he+""",我是雷神,
# 我要劈死你,"""+he)


print(('你好'+he)*10000)
import turtle
h = input("你的名字?")
print("你好"+h)
red = input("你喜欢什么背景颜色???")
long = int(input("你的长度"))
turtle.shape("turtle")
turtle.speed(0)
turtle.color("yellow","yellow")
turtle.bgcolor(red)
turtle.begin_fill()
turtle.pensize(2)
turtle.forward(long)
turtle.left(144)
turtle.forward(long)
turtle.left(144)
turtle.forward(long)
turtle.left(144)
turtle.forward(long)
turtle.left(144)
turtle.forward(long)
turtle.end_fill()
turtle.done()
发布了254 篇原创文章 · 获赞 16 · 访问量 9494

猜你喜欢

转载自blog.csdn.net/houlaos/article/details/104030980
BOB