标签: beian

  • Java-for

    Java-for

    public class Test {
    
       public static void main(String args[]){
          int [] numbers = {10, 20, 30, 40, 50};
    
          for(int x : numbers ){
             System.out.print( x );
             System.out.print(",");
          }
          System.out.print("\n");
          String [] names ={"James", "Larry", "Tom", "Lacy"};
          for( String name : names ) {
             System.out.print( name );
             System.out.print(",");
          }
       }
    }
    
  • Python-type

    Python-type

    >>> x = "W3Cschool"
    >>> type(x)
    <type 'str'>
    >>> x=100
    >>> type(x)
    <type 'int'>
    >>> x=('1','2','3')
    >>> type(x)
    <type 'tuple'>
    >>> x = ['1','2','3']
    >>> type(x)
    <type 'list'>
  • HTML-YF

    HTML-YF

    <style>
        .keyword { color: purple; }
        .string { color: red; }
        .comment { color: green; }
    </style>
    
    
    <pre><code>
    <html>
    <head>
        <title>编程狮示例</title>
    </head>
    <body>
        <p>这是一个编程狮的示例页面。</p>
    </body>
    </html>
    </code></pre>