Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson5_5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c4c99b7d
authored
Jan 05, 2025
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
17f8890d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
719.py
diy2.py
719.py
0 → 100644
View file @
c4c99b7d
'''
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
diy2.py
View file @
c4c99b7d
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment