ICode9

精准搜索请尝试: 精确搜索
  • 实验62022-05-25 13:32:16

    task3 def is_valid(x): if len(x)!=18: return False else: if x.isdecimal(): return True elif x.find('X')and x.strip('X').isdecimal(): return True else: return

  • 实验六2022-05-25 13:02:15

    def is_valid(x): if len(x[1])==18 and (x[1][:-1].isdigit() and x[1][-1] in '0123456789X'): return True return Falsewith open('data3_id.txt','r',encoding='utf-8') as f: id_name=[(i[:2],i[3:].strip(�

  • C# 字符串中文乱码解决2022-05-25 12:33:28

    把中文乱码字符串转进去,如这样的 /诈骗、涉赌文献总结.xlsx 要转成正常的中文用下面的方法即可解决。 public static string DecFileName(string str) { Encoding utf8 = Encoding.GetEncoding("iso-8859-1"); byte[] btArr = utf8.GetBytes(

  • 实验六2022-05-25 12:33:12

    def is_valid(id): if len(id[1]) == 18 and (id[1][:-1].isdigit() and id[1][-1] in '0123456789X'): return True return False with open('data3_id.txt', 'r', encoding='utf-8') as f: id_name = [(i[:2], i

  • 实验62022-05-25 12:33:01

    def is_valid(x): ls=[str(i) for i in range(0,10)] ls.append('X') if len(x)<18: return False for a in range(len(x)): if x[a] not in ls: return False break if a==len(x)-1: retu

  • 实验六-数据文件2022-05-25 09:31:31

    def is_valid(x): if len(x)!=18: return False for i in x: if not (i.isdigit() or i=='X'): return False else: return True with open('data3_id.txt','r',encoding='utf-8')

  • 实验六2022-05-25 02:32:53

              with open("data5.txt","r",encoding="utf-8") as f: d=f.readlines() import random n=int(input("输入随机抽点人数:")) f1=set() l=len(f1) while l<n: f=random.randint(0,len(d)) f1.add(d[f]) l=len(f1

  • 实验62022-05-24 23:04:01

    import random n = eval(input('输入抽取数目:')) with open('C:\\Users\\肖鑫\\Desktop\\实验6数据文件\\实验6数据文件\\data5.txt','r',encoding='utf-8') as f: x = [] for line in f: x.append(line.strip('\n�

  • 实验六2022-05-24 22:34:39

    def is_valid(m): if len(m)==18 and m.isdigit(): return 'True' elif len(m)==18 and m[-1]=='X': return 'True' else: return 'False' with open('D:/实验六数据文件data3_id.txt',

  • 实验六 付子安 2021838200352022-05-24 22:01:51

    1 title = ['城市', '人口(万)'] info = [ ['南京', '850'], ['纽约', '2300'], ['东京', '3800'], ['巴黎', '1000'] ] with open('city1.csv'

  • 实验六2022-05-24 18:35:40

    #task3.py def is_valid(x): if len(x) != 18: return False else: for i in x: try: i = int(i) except: if ord(i) != ord('X'): return False re

  • 实验六2022-05-24 16:35:35

    task5-1 import random import datetime with open('C:\\Users\\86131\\Desktop\\实验6数据文件\\实验6数据文件\\data5.txt','r',encoding='utf-8') as f: a=f.readlines() b=[x.strip('\n').split('\t') for x in

  • 实验62022-05-24 16:04:19

    with open('data3_id.txt', 'r', encoding='utf-8') as f: data=f.readlines() data=[line.strip().split(',') for line in data] ans=[] def isvalid(id): if len(id)!=18: return False else: for i

  • 实验六2022-05-24 15:00:07

    task3 def is_valid(x): if len(x) != 18: return False for i in x: if not (i.isdigit() or i == 'X'): return False else: return True import csv l=[] with open('data3_id.txt', 'r'

  • 实验62022-05-24 08:00:07

    def is_valid(id): if len(id[1]) == 18 and (id[1][:-1].isdigit() and id[1][-1] in '0123456789X'): return True return Falsewith open('data3_id.txt', 'r', encoding='utf-8') as f: id_name = [(i[:2], i[3:].

  • 实验六2022-05-23 23:34:49

    def is_valid(id): if len(id) != 18: return False try: for i in id: if i == 'X': continue elif type(eval(i)) == int: continue else: return

  • 实验6 文件应用编程-22022-05-23 23:00:22

    def is_valid(x): if len(x)==18: if x.isdigit() or( x[:-1].isdigit() and x[-1]=='X'): return True else: return False else: return False with open('data3_id.txt','r',enco

  • 实验六 文件应用编辑-22022-05-23 23:00:07

    Task——3 def is_valid(x): if len(x) != 18 : return False else: for i in x: if '0'<=i<='9'or i=='X': continue return False else: return

  • 实验6 文件应用编程-22022-05-23 21:35:15

    def is_valid(a): if len(a)==18 : if a.isdigit() or( a[:-1].isdigit() and a[-1]=='X'): return True else: return False else: return False with open('D://aa//data3_id.txt','

  • 实验六2022-05-23 18:32:01

    def is_valid(x): if len(str(x[3:]))!=18: return False elif len(str(x[3:]))==18 and x[3:].isdigit(): return True else: if x[3:-1].isdigit() and x[-1]!='X': return False else: ret

  • 实验六2022-05-22 21:02:27

    def is_valid(x): ls=[str(i) for i in range(0,10)] ls.append('X') if len(x)<18: return False for a in range(len(x)): if x[a] not in ls: return False break if a==len(x)-1: retu

  • 实验六2022-05-22 21:00:53

    def is_valid(x): if len(x) != 18: return False else: for i in x: try: i = int(i) except: if ord(i) != ord('X'): return False return True

  • 实验62022-05-22 19:33:16

    def is_valid(x): if len(x)!=18: return False else: if x.isdecimal(): return True elif x.find('X')and x.strip('X').isdecimal(): return True else: return False w

  • 实验62022-05-22 16:03:04

    task3.py def is_valid(n): if len(n) == 18: if (n.isdigit()) or (n[:-1].isdigit() and n[-1] == 'X'): return True else: return False else: return False with open('data3_id.txt',&

  • 实验6 文件应用编程-22022-05-22 16:01:16

    1.实验任务1:CSV格式文件读写 task1_1.py 1 title = ['城市', '人口(万)'] 2 info = [ ['南京', '850'], 3 ['纽约', '2300'], 4 ['东京', '3800'], 5 ['巴黎', '1000'] ] 6 with open('

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有