[笔记]Student-Class
来源:互联网 发布:二次元女生知乎 编辑:程序博客网 时间:2024/05/20 07:35
Python - 类
学习:
'a test class'__author__ = "Sean"class Student(object): def __init__(self, name, score): self.name = name self.score = score def print_score(self): print('%s: %s' %(self.name, self.score))bart = Student('Bart Simpson', 59)lisa = Student('Lisa Simpson', 99)bart.print_score()lisa.print_score()尝试:
'a test class'__author__ = "Sean"class Student(object): def __init__(self, name, score): self.name = name self.score = score def print_score(self, cool): print('%s: %s is %s' % (self.name, self.score, cool))bart = Student('Barts', 89)bart.print_score([1, 2, 3, 4, 5])
阅读全文
0 0
- [笔记]Student-Class
- student.class
- class Student < Person
- public class Student implements Serializable{
- JAVA-继承、覆盖class Student extends Person { }
- [C++学生类] The Student Class
- student
- student
- student
- student
- student
- ids for this class must be manually assigned before calling save(): cn.student.domain.Student
- The Student Class with Private Data fields (for lab)
- 1348 [BA1000] The Student Class with Public Data Fields
- book1 unit4 after-class reading 1 : Becoming a Successful Student
- An association from the table student refers to an unmapped class: com.test.model.Team
- [SSM]There is no getter for property named 'token_exptime' in 'class com.hdu.model.Student'
- An association from the table score refers to an unmapped class: Student
- 程序员也应该注意 -- 养老保险问题
- 剑指offer之第一个只出现一次的字符
- Qt下载地址
- 二维码
- 本地yum配置
- [笔记]Student-Class
- HDU 1719 Friend (思路题)公式推导变形
- 基于AI神经引擎的Face ID,真能让人放心吗?
- java.lang.NoClassDefFoundError: javax/servlet/ServletInputStream
- iOS透明导航栏的平滑过渡(进阶版)
- 230. Kth Smallest Element in a BST
- source insight安装破解
- Android自定义view
- 开头为0的md5值总结