马茜

Flynn
561 号测试 成员, 2018-12-03 04:19:03 加入
1.1k
个人主页浏览
  • Python13 期字符串大考核!!!

    2020-07-24 10:55

    a = 'sdSdsfdAdsdsdfsfdsdASDSDFDSFa'
    #字符串a大小写互换
    s = a.swapcase()
    print('s大小写互换后为:',s)
    s.replace('A','Z')
    s.replace('b','y')
    print(s)