python学习总结----遇到的常见问题


raw_input("xxx"):python 3.x以后版本中取消了raw_input而用input(" xxxxx")代替

list 函数:根据字符串创建列表

例如:list('hello')得到['h','e','l','l','o']


如何输出不换行:

方法:在每个print(xxx,end=""),end=""可使输出不换行

猜你喜欢

转载自blog.csdn.net/congcong7267/article/details/78852823