Commit c4c99b7d by BellCodeEditor

auto save

parent 17f8890d
Showing with 21 additions and 3 deletions
'''
def f(x):
return x*x
print(list(map(f,[1,2,3,4])))
'''
# print(list(map(int,input().split(" "))))
print(ord("a"))
\ No newline at end of file
i = 5 # 行
j = 3 # 列
print(j,"*",i,"=",(j*i))# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式
x轴上的点,y坐标为0
y轴上的点,x坐标为0
函数:分为有参函数和无参函数。
函数名()
glideto(秒数,角色名) 在几秒内滑行到具体的角色
def # 定义 define
函数的命名规则:
1. 由字母、数字、_组成;
2. 数字不能作为开头;
3. 不能使用关键字(保留字),比如def
pendown() # 落笔
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment