摘要: 一、实参和形参 def greet_user(username): print("Hello,"+username.title()+"!") greet_user('jesse') 在上面这个例子中,greet_user(username)中的username变量就是形参,形参就是函数完成其工作时所 阅读全文
posted @ 2018-08-09 16:13 吴然_O_o_o 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 一、常用函数 1.title():以首字母大写显示每个单词。 运行结果: 2.upper():转换成大写字母; lower():转换成小写字母; 运行结果: 3.rstrip():去除字符串右边的空格; lstrip():去除字符串左边的空格; 运行结果: 4.str():将变量用作字符串。 5.列 阅读全文
posted @ 2018-08-08 16:08 吴然_O_o_o 阅读(300) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-08-08 16:02 吴然_O_o_o 阅读(1) 评论(0) 推荐(0) 编辑