zoukankan      html  css  js  c++  java
  • 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
    

      

  • 相关阅读:
    (转)C# DES
    (转)adb shell am 的用法
    (转)C# 解析 json
    (转)C#执行exe程序
    (转) C# textbox 限制输入问题
    (转)C# SSL-X509使用
    事务管理
    spring数据源
    2.spring 学习
    sonarqube 代码检查
  • 原文地址:https://www.cnblogs.com/jijianhu/p/10310913.html
Copyright © 2011-2022 走看看