• format() expandtabs() 输入表格数据


    1 输入表格数据

    format(self, *args, **kwargs): # known special case of str.format
    """
    S.format(*args, **kwargs) -> str

    Return a formatted version of S, using substitutions from args and kwargs.
    The substitutions are identified by braces ('{' and '}').
    """
    pass
    expandtabs(self, *args, **kwargs): # real signature unknown
    """
    Return a copy where all tab characters are expanded using spaces.

    If tabsize is not given, a tab size of 8 characters is assumed.
    """
    pass
    s = ""
    while True:
        a = input("PPP:")
        b = input("PPP:")
        c = input("PPP:")
        yy = "{0}	{1}	{2}
    "
        d = yy.format(a,b,c)
        s = s + d
        print(s.expandtabs(30))
        if input("shuru q:") == "q":
            break
        else:
            continue
    ——————————————
    PPP:333
    PPP:4444
    PPP:5555
    333                           4444                          5555
    
    shuru q:2
    PPP:
    PPP:33
    PPP:566
    333                           4444                          5555
                                  33                            566
    
    shuru q:q
    
    Process finished with exit code 0
    

      

  • 相关阅读:
    Excel相关界面
    延时函数
    VBA窗体之ListView分页显示
    VBA窗体之ListView
    医疗机构税收大全及理论探讨(2018年)
    VBA_Xpath定位元素
    VBA_CSS定位元素
    VBA_DOM定位元素
    VBA_IE&HTTP
    Listbox
  • 原文地址:https://www.cnblogs.com/jijianhu/p/10310913.html
Copyright © 2020-2023  润新知