My world!My workspace!

作为CNDS新人!希望能够通过这片小天地与朋友们交流编程、科研、教学方面的心得体会!同时让自己的技术得到提高!

Python 2.x: 

[python]  view plain  copy
  1. #!/usr/bin/python  
  2. # -*- coding: utf-8 -*-  
  3. print 'Hello, CSDN!'  
Python 3.x  

[python]  view plain  copy
  1. print('Hello, CSDN!')  

C:

[cpp]  view plain  copy
  1. #include <stdio.h>  
  2.   
  3. int main() {  
  4.     printf("Hello, CSDN!\n");  
  5.     return 0;  
  6. }  

Java:

[java]  view plain  copy
  1. class Hello {  
  2.     public static void main(String[] args) {  
  3.         System.out.println("Hello, CSDN!");  
  4.     }  
  5. }  

C++:

[cpp]  view plain  copy
  1. #include <iostream>  
  2.   
  3. int main(int argc, const char * argv[]) {  
  4.     std::cout << "Hello, CSDN!" << std::endl;  
  5.     return 0;  
  6. }  

猜你喜欢

转载自blog.csdn.net/zzqhello2018/article/details/80800560
my