小编Fre*_* L.的帖子

另一个函数的函数设定值

我该如何制作这些功能

def InputName():
    Name = input("Name: ")
def InputCourseName():
    CourseName = input("Course: ")
Run Code Online (Sandbox Code Playgroud)

为我设置Name和CourseName以用于:

def Criacao(Name, CourseName):
    global Fonte, Output, CorTexto, Raw
    base = Image.open(Raw)
    draw = ImageDraw.Draw(base)        
    draw.text((5,5), Name.upper(), font=Fonte, fill=CorTexto)
    draw.text((6,5), CourseName.upper(), font=Fonte, fill=CorTexto)
Run Code Online (Sandbox Code Playgroud)

如果我跑了会有用Criacao(InputName(), InputCourseName())吗?

python variables function python-3.x

0
推荐指数
1
解决办法
67
查看次数

标签 统计

function ×1

python ×1

python-3.x ×1

variables ×1