約109件1ページ目

日本語のみで絞り込む

2013/1/4 -A BIG part of the problem is that the string replace() method returns a copy of string with occurrences replaced -- it doesn't do it in-place.

2024/10/21 -replace() method to allow multiple substring replacements in a string using a dictionary. Currently, .replace() accepts only two arguments (the ...

2025/7/15 -Using str.replace() in a loop, you can systematically replace specific substrings within a string with new values. This approach is useful for ...

2021/10/31 -I want the replace a word given by the input to create a cipher, but I can't figure out how to change each value at the same time to produce ...

2022/7/20 -replace() because this function changes a string to a different string. ... string and the dictionary value would still point to the empty string.

2025/7/23 -Each key in the dictionary represents the character to be replaced, and its value specifies the replacement. For example, given the string ...

2017/11/24 -I am writing code to edit the field names in a csv file to be imported into ArcMap. I have all the field names in a list of strings.

2019/2/26 -Hi, Below a part of the program I am writing, I have difficulty to make the last part function correctly. mwodict is a dictionary where the ...

Change Values. You can change the value of a specific item by referring to its key name: ExampleGet your own Python Server. Change the "year" to 2018:.

2016/2/8 -Python Function to Replace Words. This function will take in two variables: base_text string and device_values dictionary. It will iterate ...