Posts by felipe • 59 points
9 posts
-
0
votes2
answers48
viewsA: String sub-stituir per variable
so was the code after the help of friends import random import fileinput file_name = 'C:/Users/Felipe/Desktop/CHART.txt' for line in fileinput.FileInput(file_name,inplace=1): c3 = (random.choice([0,…
-
-1
votes1
answer30
viewsQ: Spawn of midi python notes
i want to create a game style Guitar I made a prototype in Blender I used as a base a course of Infinity Runner in Blender, I would like to create a Pawn of notes that are contained in a file.midi…
-
0
votes1
answer92
viewsQ: How to replace by following a pre-determined python pattern
within txt have 12480 = B X 43200 = B X 47040 = B X 50880 = B X 54720 = B X 58560 = B X 62400 = B X 66240 = B X 70080 = B X 73920 = B X 77760 = B X 85440 = B X 89280 = B X 93130 = B X 96960 = B X I…
-
0
votes2
answers48
viewsQ: String sub-stituir per variable
i have the following text inside a.txt file [ExpertSingle] { 1050 = N X 0 1260 = N X 0 1470 = N X 0 1680 = N X 0 1890 = N X 0 2100 = N X 0 I want to turn "X" into numbers using Choice Ring to look…
-
0
votes0
answers67
viewsQ: how to modify a certain value or letter within a python text
i have the following text 1050 = N X 0 1260 = N X 0 1470 = N X 0 1680 = N X 0 1890 = N X 0 2100 = N X 0 2310 = N X 0 2520 = N X 0 2730 = N X 0 2940 = N X 0 3150 = N X 0 3360 = N X 0 3570 = N X 0…
-
2
votes4
answers931
viewsQ: Python columns excel csv
I made this number generator that gets saved in a csv file that I open in excel, the combinations are generated in column A but n want it to appear in A. as I do for her to appear in column B and C?…
-
2
votes1
answer912
viewsQ: Formatting a python stored text
I made a random number generator that generates and saves in.txt file I made generate 3 combinations, it happens that when I open the txt the combinations are on the side of the other, as I do to be…
-
1
votes1
answer2558
views -
0
votes1
answer103
viewsQ: Generate a random combination on each line
I made a number generator that looked like this: import random import math for i in range(10): c1 = (random.choice([1, 2, 3, 4, 5, 6, 7, 8, 9])) c2 = (random.choice([1, 2, 3, 4, 5, 6, 7, 8, 9])) c3…