摘要:
函数:定义函数#area.pyfrom math import pidef area(radius): """Return the area of a circle with the given radius.""" return pi * radius ** 2>>> ========... 阅读全文
摘要:
键盘读取字符串:name = input('What is your first name?').strip()print("Hello " + name.capitalize() + "!")input():从键盘获取字符串 若要获取数字必须使用类型转换strip():删除字符串开始和结尾多余的空... 阅读全文