繁体   English   中英

一个 function 的输入每天都在变化,是另一个 function 的 output [关闭]

[英]A function whose input changes daily and is the output of another function [closed]

在 Python 中,我想构建一个 function 来计算我的工作日。 每天,我都会运行程序,输入我的输入,output 将集成到 tkinter window 中。 function 应该按如下方式工作:依赖于它自己的 output 的顺序 function

def inner_count(n):
    if(input() == "l"):
        n = n + 1
    else:
        n = n + 0
    return n

请帮我创建一个 function ,它拥有自己的 output 并在其上工作。 我希望所附图片能完全清楚地说明我的问题

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM