摘要:
# coding =utf-8 ## 类的定义 ##-------------------------------------------------- class Employee: empCount = 0 ## 构造函数,函数名必须用: __init__ def __init__(self, name, salary): self.name = name ... 阅读全文
posted @ 2017-05-22 10:52
wxiaoli
阅读(10040)
评论(0)
推荐(0)
摘要:
# coding=utf-8 s='ADVERSARIAL EXAMPLES IN THE PHYSICAL WORLD' print s.lower() #所有转小写 print s.upper() #所有转大写 print s.capitalize() #行首字母大写,其他小写 print s.title() #每个单词首字母大写,其他小写 阅读全文
posted @ 2017-05-22 10:51
wxiaoli
阅读(2725)
评论(0)
推荐(0)

浙公网安备 33010602011771号