![]() Python dg_format.py Code Snippet Meta Information This script takes a CSV file of IPs and/or networks keys, with or without values, and transforms it into an acceptable format for upload to the GUI. I couldn't figure out the format, however, until me to the K73862425 knowledge article. I was today years old when I found out you could upload external data-group files to the GUI. NameError: name 'DFW000_0330PM_Thursday_November_16_2017' is not definedīut, when I change the name of the code to (for example) "11", the code defines the file and goes to the next steps, but again it returns the bellow error: Traceback (most recent call last):įile "C:/Users/Behzad/Desktop/run/UTA/cvstotext.Code is community submitted, community supported, and recognized as ‘Use At Your Own Risk’. My first problem is that when the name of the input file is (for example) "DFW002_0330PM_Thursday_November_16_2017", I get the bellow error: Traceback (most recent call last):įile "C:/Users/Behzad/Desktop/run/UTA/cvstotext.py", line 1, in Ĭsv_file = input('Enter the name of your input file: ') My_output_file.write("double()\n".format(len(text_list), 2)) With open(txt_file, "w") as my_output_file: With open(csv_file, "r") as my_input_file: Txt_file = input('Enter the name of your output file: ') csv_file = input('Enter the name of your input file: ') ![]() csv files, I have hundreds of lines of data like the bellow:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |