python 的入门

         时光匆匆,大一的时间过的很快,从大一上学期学的c开始,就感觉出c的结构很复杂,但是不可否认,学习c和汇编等涉及到系统底层知识才会有可能开发出属于自己知识产权的东西,然而,python以其简约性,丰富的库,流畅的语法结构等特点成为了18年最火的语言,当然这其中或多或少也有培训机构吹捧的功劳,于是决定入坑python,其中有大佬总结出一句话 “人生苦短,我用python!”好了,直接进入主题吧。

1,hello world 的编写

hello world是认识一个新语言的好办法,代码如下基于(python3.x):

print ("hello,world!")

print ("输入任意字符")

  结果:

  hello,world!

  输入任意字符

完全不需要引入什么库就能直接打印出结果,确实很简约。

 

print_r('helloworld!');
var_dump('helloworld!');
NSLog(@"helloworld!");
System.out.println("helloworld!");
console.log("helloworld!");
print("helloworld!");
printf("helloworld!");
cout << "helloworld!" << endl;
Console.WriteLine("helloworld!");
fmt.Println("helloworld!");
Response.Write("helloworld");
alert("helloworld!")
echo "helloworld!"
各式的hello world

 

 

 

转载于:https://www.cnblogs.com/hxms/p/10411691.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值