| 
 | 
 
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册  
 
x
 
 本帖最后由 漫步是一种心情 于 2016-5-19 22:57 编辑  
 
1、因为自己的英语水平不好,而且面对英文经常性头晕,这也许是我们看编程书,看不进去的原因吧,而Python给了我信心,而且python对自己本身的工作也有很大的帮助 
2、print()用法: 
        print('hello world')  = hello world 
        print('hello'+'world') = hello world  
        print('hello world' * 2 ) = hello worldhello world 
        print('hello world/n' * 2) = hello world 
                                                     hello world 
3、python语句中的缩进以及“:”的要求,运行的时候,会报错 
4、input() 将输入的内容,取出来 
5、查看python内置函数  dir(__builtins__)  如何使用 内置函数 help(内置函数) 
6、将整个字符串转义打印出来,在字符串前面加r 
7、打印跨行长字符串 三重引号字符串""""""  '''''' 
8、导入python的模块 : import 模块 
9、获得关于类型的信息  type(字符) isinstance(字符,类型) 返回真假 
10、常用的判断字符串类型 
s.isalnum()是否为数字或者字母 
s.isalpha()所有为字母 
s.isdigit()所有为数字 
s.islower()所有为小写 
s.isupper()所有为大写 
s.istitle()所有首字母大写 
s.isspace()所有为空白 
11、逻辑操作符  not > and > or   逻辑中断的判断 |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |